2
3
4
|
1、SQL 中的 order
by newID() 的意思是取出数据库中的随机几行数据
select top (10) *
from 表明 order
by newid(), 取出数据库中随机10行数据 2、<>和!=的意思度是不等于 3、 in
取出包含本身的条件的数据 4、 select
* from
ec_Product where
datediff( d,UpdateDate,GETDATE())<=10,取出当前前十天内的数据参考 |