sql 插入语句如何写
来源:百度知道 编辑:UC知道 时间:2024/09/25 14:36:23
我字段一个 统计 想添加一个12(类型是数字)
这样写不对吗?
Insert into table set 统计 ='12'
两种方法我都尝试过了,怎么就显示有语法错误呢
这样写不对吗?
Insert into table set 统计 ='12'
两种方法我都尝试过了,怎么就显示有语法错误呢
insert into tablename(统计) values(12);
insert into table (统计) values(12);
应该是这样的吧
你是什么数据库?
insert into table select 12
这样是可以的,但最好这样写:
insert into table set [统计]='12'
字段最好加上[]
....字段 别用汉字啊。
Insert into table set 统计 =12