摘要:
1.--添加一条记录 2. insert into tableName(col1,col2,col3) values (val1,val2,val3) 3.--添加多条记录 4. insert into tableName(col1,col2,col3) 5. select val1,val2,val3 6. union all 7. select val1,val2,val3 8. 、、、 9.---当把 union all 换成 all 后,相同记录只插入一次,不会重复插入(必须所有字段都相同时,自动增长列除外) 10. 11.---从另外的一张... 阅读全文
摘要:
存储过程: if exists(select * from sysobjects where name='proce_name') drop procedure proce_name go create procedure proce_name @id int, @name varchar(10), @outname varchar(20) out as set @outname='历史';godeclare @aa varchar(10); exec proce_name 1,'',@aa out; print @aa; 阅读全文
摘要:
1:创建表drop table if exists tb_App;create table tb_App( id int not null, name varchar(100) not null, typeId int not null, introduction text, advertising varchar(200), LogoLink varchar(200) not null, f_Id ... 阅读全文