sql 转换成yyyy-mm-dd格式和SqlServer中获得当前日期(convert函数,getdate函数)

  如何用sql语言只得到数据库当前日期,且格式为"yyyy-mm-dd"? select convert(char(10),getdate(),120)   select   *   from   表名   where   convert(char(10),字段名,120)='2012-01-01' sql SqlServer中获得当前日期(convert函数,getdate函数)数据库    
相关文章
相关标签/搜索