我有下表:

问题是,当我尝试使用JDBC在此字段中插入字符串时,总是会收到以下错误:
java.sql.SQLException: Data size bigger than max size for this type: 6019
Run Code Online (Sandbox Code Playgroud)
我现在应该怎么做?
生成INSERT的Java代码如下:
Connection conn2 = null;
if(connection==null||connection.isClosed())
{
System.out.println("Connection is null");
conn2 = connectDB();
}
//REPLACE is non-standard SQL from MySQL, it's counter part of INSERT IGNORE
String sql = "";
sql = "INSERT INTO TEST."+tablename+" ("+fields+") VALUES ("+fields.replaceAll("[^,]+", "?")+")";
System.out.println("SQL: "+sql);
PreparedStatement pstmt = conn2.prepareStatement(sql);
// start parsing
int event = r.getEventType();
while (true) {
// for each wanted element
if (event == XMLStreamConstants.START_ELEMENT
&& r.getName().toString().equalsIgnoreCase("row")) …Run Code Online (Sandbox Code Playgroud) 我在做:
UIWindow *window = [[[UIApplication sharedApplication] windows] objectAtIndex:0];
CGPoint point = CGPointMake(window.frame.size.width/2, window.frame.size.height/2);
point = CGPointMake(window.frame.size.width - v.frame.size.width - 10, 30);
point = CGPointMake(point.x + offsetLeft, point.y + offsetTop);
v.center = point;
timer1 forMode:NSDefaultRunLoopMode];
[window addSubview:v];
Run Code Online (Sandbox Code Playgroud)
一个问题是当我以横向模式进行时:
UIWindow *window = [[[UIApplication sharedApplication] windows] objectAtIndex:0];
Run Code Online (Sandbox Code Playgroud)
我打印:
NSLog(@"WINDOW WIDTH IS %f AND HEIGHT IS %f", window.frame.size.width, window.frame.size.height);
Run Code Online (Sandbox Code Playgroud)
我有:
WINDOW WIDTH IS 768.000000 AND HEIGHT IS 1024.000000
Run Code Online (Sandbox Code Playgroud)
这不是真的..似乎它并不关心方向.
所以我有以下代码片段
$ch = curl_init();
//Set the URL
curl_setopt($ch, CURLOPT_URL, $jURL);
//Enable curl response
curl_setopt(CURLOPT_RETURNTRANSFER, true);
//Enable POST data
curl_setopt($ch, CURLOPT_POST, true);
//Use the $pData array as the POST data
curl_setopt($ch, CURLOPT_POSTFIELDS, $jData);
$result = curl_exec($ch);
echo 'The body of the response is ' . $result;
curl_close($ch);
Run Code Online (Sandbox Code Playgroud)
我想打开响应主体,但上面的代码打印数字1.有没有办法在这里得到响应?
可能重复:
未调用委托
我在appdelegate类中声明了一个委托,所以它看起来像:
@protocol LoginDelegate
- (void) loadData:(NSObject *)viewCon;
@end
@class RootViewController;
@class DetailViewController;
@interface TestAppDelegate : NSObject <UIApplicationDelegate, LoginViewControllerDelegate, RKObjectLoaderDelegate> {
id <LoginDelegate> delegate;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UISplitViewController *splitViewController;
@property (nonatomic, retain) IBOutlet RootViewController *rootViewController;
@property (nonatomic, retain) IBOutlet DetailViewController *detailViewController;
@property (nonatomic, assign) id <LoginDelegate> delegate;
@end
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//some code
[self.delegate loadData:self];
//some code
return YES;
}
Run Code Online (Sandbox Code Playgroud)
在我的其他课程中,我实现了这个委托:
- (void) loadData:(NSObject*)viewCon
{
NSLog(@"LOADING DATA");
[[RKObjectManager …Run Code Online (Sandbox Code Playgroud) 我希望有一个漂亮的桌面视图,它不那么无聊,而不仅仅是标准的.我将在每个单元格上显示图像和详细文本...任何使其不那么无聊的提示?我正在考虑消除表视图上的边框,但我该怎么做呢?此外,我希望图像显示更大,圆角