小编Mat*_*ela的帖子

如何在列名中使用特殊字符

这是我失败的MySQL代码:

CREATE TABLE product (
            id int NOT NULL AUTO_INCREMENT,
            'item-name' VARCHAR(255) NOT NULL,
            'item-description' TEXT,
            'listing-id' VARCHAR(50),
            PRIMARY KEY (id)
        )
Run Code Online (Sandbox Code Playgroud)

错误是:

创建表时出错:SQL语法中有错误; 检查与MySQL服务器版本对应的手册,以便在
'item-name' 附近使用正确的语法VARCHAR(255)NOT NULL,'item-description'TEXT,'listing-id''在第3行

文档说使用引号......有什么问题?

mysql create-table

3
推荐指数
1
解决办法
8661
查看次数

iOS7导航栏半透明= NO

我有一个背景图片,所有视图中的图像相同,但导航条traslucent默认设置为YES,背景不均匀.我试过各种解决方案,但没有改变:(

我的AppDelegate.h

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
Run Code Online (Sandbox Code Playgroud)

我的AppDelegate.m

#import "AppDelegate.h"

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >>16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

[[UINavigationBar appearance] setBarTintColor: UIColorFromRGB(0x45312a)];
[[UINavigationBar appearance] setTintColor: [UIColor whiteColor]];

NSArray *ver = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
if ([[ver objectAtIndex:0] intValue] >= 7) {
    self.navigationController.navigationBar.translucent = NO;
}

return YES;
}
Run Code Online (Sandbox Code Playgroud)

但在行: …

objective-c uinavigationbar ios

1
推荐指数
1
解决办法
8894
查看次数

标签 统计

create-table ×1

ios ×1

mysql ×1

objective-c ×1

uinavigationbar ×1