摘要:
sql插入多条数据的sql语句 有三种方法: 1.InSert Into <表名>(列名) Select <列名> From <源表名> 如:INSERT INTO TongXunLu (姓名,电话,电子邮件) SELECT SName,SAddress,SEmail FROM Students 这 阅读全文
摘要:
添加字段语法 alter table table_name add column_name +字段类型+ 约束条件 给一个表增加多个字段: use NatureData go alter table XunHu add ID int identity (1,1), MaleCount varchar 阅读全文
摘要:
1.查询单列重复: select * from test where name in (select name from test group by name having count (name) > 1) 2.查询多列重复: 复制代码 SELECT a.* FROM test a,( SELEC 阅读全文