我是初学者,请帮我解决一下这个问题,不甚感激 向student表中插入记录“张明”,“男”,“电工学院”,“2004127001”,高手请写一下过程,不甚感激! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into student values('张明','男'.'电工学院','2004127001') insert into student values('张明','男','电工学院','2004127001')修改了下 --如果你的表只有这几个字段的话 且顺序依次这么排的就这么写insert into student values('张明','男','电工学院','2004127001')--如果这只是其中四个字段 则insert into student (name,sex,dept,sno)values('张明','男','电工学院','2004127001') 当然你还可以这样--如果你的表只有这几个字段的话 且顺序依次这么排的就这么写insert into student select '张明','男','电工学院','2004127001'--如果这只是其中四个字段 则insert into student (name,sex,dept,sno)select '张明','男','电工学院','2004127001' 字段对应就好了,还有需要时加个Ninsert into student (name,sex,dept,sno)values(N'张明',N'男',N'电工学院','2004127001') 求一SQL语句 关于连接数据数串问题,谢 帮忙检查一条SQL语句 求一个sql语句:两个表相联接查询 如何实现数据库同步? 日期查询; sql server2000中怎么将一个字符串分割成多个字段??急,在线等 SQL如何显示每日的前10行记录 sql无法附加数据库,错误602 下面的sql有没有不规范的地方,我能正常运行,在别的服务器上不能用。 流程的查询问题 大家来讨论,有几个用MSDTC成功的?
values('张明','男'.'电工学院','2004127001')
values('张明','男','电工学院','2004127001')
修改了下
insert into student
values('张明','男','电工学院','2004127001')
--如果这只是其中四个字段 则
insert into student (name,sex,dept,sno)
values('张明','男','电工学院','2004127001')
insert into student
select '张明','男','电工学院','2004127001'
--如果这只是其中四个字段 则
insert into student (name,sex,dept,sno)
select '张明','男','电工学院','2004127001'
insert into student (name,sex,dept,sno)
values(N'张明',N'男',N'电工学院','2004127001')