数据库:带限制条件的查询和表达式查询(头歌)
USE MallGoSET NOCOUNT ON---------- retrieving with limited ------------ ********** Begin ********** --select top 2 prod_name from Products-- ********** End ********** --GO---------- retrieving with ex
·
USE Mall
Go
SET NOCOUNT ON
---------- retrieving with limited ----------
-- ********** Begin ********** --
select top 2 prod_name from Products
-- ********** End ********** --
GO
---------- retrieving with expression ----------
-- ********** Begin ********** --
select prod_price,prod_price*0.8 discount_price from Products
-- ********** End ********** --
GO
更多推荐
已为社区贡献6条内容
所有评论(0)