模板建站多少钱,织梦网站模板响应式,网络推广计划的三个步骤,市场营销策略分析ylbtech-SQL Server-Basic:SQL Server-数据库查询语句基本查询SQL Server 数据库查询语句基本查询。 1#xff0c;数据库查询语句基本查询数据库SQL ServerOracle基本语句 select select * from titles select title_id,title,price,pub_id from titles select * from title …ylbtech-SQL Server-Basic:SQL Server-数据库查询语句基本查询 SQL Server 数据库查询语句基本查询。 1数据库查询语句基本查询 数据库SQL ServerOracle基本语句 select select * from titles select title_id,title,price,pub_id from titles select * from title where title_id9834 select * from title order by price select * from authirs order by a_lname,a_fname select type,count(title_id)as 每种类型数量 from title group by type 注意where 在前 order by 其次 group by 最后 同左←deletedelete into title where title_id9874同左←updateupdate title set titletitle1,priceprice1 where title_id9874同左←insert insert titles(,,,,) values(,,,,) insert titles(title,price) values(thanks to java,23.5) 同左←建视图 create view view_name as sql语句 建存储过程 create procdure proc_nameassql语句 有参数只有入参 create proc ups_shjpub_id varchar(20)asselect * from titles where pub_idpub_id; 有参数入参出参output) create proc ups_shj1title varchar(200),ytd_sales int outputasselect ytd_salesytd_sales from titles where titletitle; --执行存储过程查找书籍Sushi, Anyone?godeclare sales intexec ups_shj1 Sushi, Anyone?,ytd_salessales outputselect sales 作者ylbtech出处http://ylbtech.cnblogs.com/本文版权归作者和博客园共有欢迎转载但未经作者同意必须保留此段声明且在文章页面明显位置给出原文连接否则保留追究法律责任的权利。 转载于:https://www.cnblogs.com/ylbtech/p/3493855.html