保留词
一个常见的问题源自于试图使用MySQL内置的数据类型或函数名同名的列来创建数据库表,例如TIMESTAMP或GROUP。你允许这样做(例如,ABS是一个允许的列名),但是当使用其名字也是列名的函数时,在一个函数名和“ ( ”之间不允许白空。
下列词明确地在MySQL中被保留。他们的大多数被 ANSI SQL92 禁止作为列或表名(例如,group)。一些被保留因为MySQL需要他们并且正在(当前)使用一个yacc分析器:
action add aggregate all <br>alter after and as <br>asc avg avg_row_length auto_increment <br>between bigint bit binary <br>blob bool both by <br>cascade case char character <br>change check checksum column <br>columns comment constraint create <br>cross current_date current_time current_timestamp <br>data database databases date <br>datetime day day_hour day_minute <br>day_second dayofmonth dayofweek dayofyear <br>dec decimal default delayed <br>delay_key_write delete desc describe <br>distinct distinctrow double drop <br>end else escape escaped <br>enclosed enum explain exists <br>fields file first float <br>float4 float8 flush foreign <br>from for full function <br>global grant grants group
having heap high_priority hour
hour_minute hour_second hosts identified <br>ignore in index infile <br>inner insert insert_id int <br>integer interval int1 int2 <br>int3 int4 int8 into <br>if is isam join <br>key keys kill last_insert_id <br>leading left length like <br>lines limit load local <br>lock logs long longblob <br>longtext low_priority max max_rows <br>match mediumblob mediumtext mediumint <br>middleint min_rows minute minute_second <br>modify month monthname myisam <br>natural numeric no not <br>null on optimize option <br>optionally or order outer <br>outfile pack_keys partial password <br>precision primary procedure process <br>processlist privileges read real <br>references reload regexp rename <br>replace restrict returns revoke <br>rlike row rows second <br>select set show shutdown <br>smallint soname sql_big_tables sql_big_selects <br>sql_low_priority_updates sql_log_off sql_log_update sql_select_limit <br>sql_small_result sql_big_result sql_warnings straight_join <br>starting status string table <br>tables temporary terminated text <br>then time timestamp tinyblob <br>tinytext tinyint trailing to <br>type use using unique <br>unlock unsigned update usage <br>values varchar variables varying <br>varbinary with write when <br>where year year_month zerofill
下列符号(来自上表)被ANSI SQL禁止但是被MySQL允许作为列/表名。这是因为这些名字的一些是很自然的名字并且很多人已经使用了他们。
ACTION <br>BIT <br>DATE <br>ENUM <br>NO <br>TEXT <br>TIME <br>TIMESTAMP
|
kehui
|
|
智慧家居
智慧家居颠覆传统智能家居
智慧云谷让智能家居变成有智慧的
智慧云谷引领智慧家居新生活
科技改变生活 智慧云谷智慧家居系
智慧家居领航者,智慧云谷助你玩
智能家居如何赢得市场美誉度?
智慧云谷智慧家居:创业者有无限
WiFi智能家居你还在用?这样的智
互联网+助推智能家居产业
智慧云谷为您打造真正的智能家居
智能家居产业需要的不是单品,而
新家如何选择开关?智慧云谷iWis
智能传感器-世界首款“智”为你的
智慧云谷开关智能安防智能空气质
智能开关品牌,如何选择智能开关
秋季干燥,智慧家居温湿度传感器
传感器助力智慧家居 感知爱家
iWiscloud智能触摸开关缔造家居装
※室内空气污染的危害及 [sensor]
※超声波风速传感器在生 [sensor]
※这么冷清 [gabc111]
※手机APP操作有问题 [ssy11407]
※智慧云谷智慧家居将在 [cici]
※上传下载 [cici]
※下载智慧家居 [apple2008]
※秋季干燥,智慧家居温 [apple2008]
※智慧家居紧扣热点 安全 [apple2008]
※办公大楼如何智慧化管 [apple2008]
※智慧云谷工业自控的优 [apple2008]
※传感器助力智慧家居 感 [apple2008]
※智能开关品牌,如何选 [apple2008]
※智慧云谷开关智能安防 [apple2008]
※没有专业人员,如何安 [apple2008]
※烟台智慧云谷董事长任 [apple2008]
※互联网+助推智能家居产 [apple2008]
※WiFi智能家居你还在用 [apple2008]
※智慧云谷智慧家居:创 [apple2008]
※智能家居如何赢得市场 [apple2008]
|