如何用SQL编写提取语句??????????????????如:要提取销售表sale中2007年1月1日的数据,要怎么写?
我是新人,很多不懂

解决方案 »

  1.   

    select语句
    select * from 销售表 where 日期=2007年1月1日;注意类型一致具体需要看表结构
      

  2.   


    select * from sale where 日期 = '2007-01-01'
    select * from sale where to_char(日期,'yyyy-mm-dd') = '2007-01-01'
      

  3.   

    select * from sale where date = to_date('2007-1-1','yyyy-mm-dd')
      

  4.   

    那如果是想提取销售表sale中2007年1月1日的人员编号和交易次数,要怎么写?