你还是把PHP的错误提示写出来比较些,要不然你把插入的SQL语句拿出来看看,就这样怎么看嘛?
解决方案 »
- 根据目录字符串生成一个目录树
- 谁有IE6帮我看一下我都块改疯了
- PHP怎么写迅雷地址加密解密的方法
- 取回文件头信息 问题!
- php中如何对表单中的内容判断是否存在中文或数字
- 新手请教PHP怎么批量循环打印出四位数的数字?
- 招聘程序员两名,版主留情!我也是为兄弟们着想啊!
- mysql文件名显示错误的问题!
- 在www.abc.com中的表单Post数据到www.xyz.com/test.php,如何在test.php得到www.abc.com的url
- 请问高手,关于php连接数据库的问题
- 我在自己的机子上配了APACHE,可是用PHP连接MYSQL却连不上,请问为什么?
- 我发现CSDN论坛重开之后,速度特慢,发的贴子半天不见上来,不知道发哪去了??大家有同感吗???
用`号就行了select * from `order` where....
一个常见的问题源自于试图使用MySQL内置的数据类型或函数名同名的列来创建数据库表,例如TIMESTAMP或GROUP。你允许这样做(例如,ABS是一个允许的列名),但是当使用其名字也是列名的函数时,在一个函数名和“ ( ”之间不允许白空。下列词明确地在MySQL中被保留。他们的大多数被 ANSI SQL92 禁止作为列或表名(例如,group)。一些被保留因为MySQL需要他们并且正在(当前)使用一个yacc分析器: action add aggregate all
alter after and as
asc avg avg_row_length auto_increment
between bigint bit binary
blob bool both by
cascade case char character
change check checksum column
columns comment constraint create
cross current_date current_time current_timestamp
data database databases date
datetime day day_hour day_minute
day_second dayofmonth dayofweek dayofyear
dec decimal default delayed
delay_key_write delete desc describe
distinct distinctrow double drop
end else escape escaped
enclosed enum explain exists
fields file first float
float4 float8 flush foreign
from for full function
global grant grants group
having heap high_priority hour
hour_minute hour_second hosts identified
ignore in index infile
inner insert insert_id int
integer interval int1 int2
int3 int4 int8 into
if is isam join
key keys kill last_insert_id
leading left length like
lines limit load local
lock logs long longblob
longtext low_priority max max_rows
match mediumblob mediumtext mediumint
middleint min_rows minute minute_second
modify month monthname myisam
natural numeric no not
null on optimize option
optionally or order outer
outfile pack_keys partial password
precision primary procedure process
processlist privileges read real
references reload regexp rename
replace restrict returns revoke
rlike row rows second
select set show shutdown
smallint soname sql_big_tables sql_big_selects
sql_low_priority_updates sql_log_off sql_log_update sql_select_limit
sql_small_result sql_big_result sql_warnings straight_join
starting status string table
tables temporary terminated text
then time timestamp tinyblob
tinytext tinyint trailing to
type use using unique
unlock unsigned update usage
values varchar variables varying
varbinary with write when
where year year_month zerofill 下列符号(来自上表)被ANSI SQL禁止但是被MySQL允许作为列/表名。这是因为这些名字的一些是很自然的名字并且很多人已经使用了他们。 ACTION
BIT
DATE
ENUM
NO
TEXT
TIME
TIMESTAMP