在客户端取得服务器系统日期的SQL语句是什么?
多谢了.

解决方案 »

  1.   

    select getdate() 会取得日期和具体时间,如:
    2008-06-11 19:16:10而我想得到的只是日期, 如 2008-06-11这又如何取呢? 谢先
      

  2.   

    可以用这些函数呀 
    year
    month
    day
      

  3.   


    --这样
    select convert(varchar(10),getdate(),120) result/*
    result
    ---------
    2008-06-12
    */
      

  4.   

    select getdate() 快去结贴!接分先哈哈
      

  5.   

    select convert(varchar(10),getdate(),120) 系统当前年月日
      

  6.   


    select convert(varchar(10),getdate(),120) result