use test
select * from vote
insert into vote (contents) values(GETDATE())
insert into vote (contents,timess,AAA) values ('ss',GETDATE(),GETDATE())
--插入数据时 不能为空值的列名必须 写上, 能为空的可以不写
select AAA from vote where ID=22

select CONVERT(varchar(12) , AAA, 111 ) from vote where ID=22     111的结果 xxxx/xx/xx; 111换成23的结果是 xxxx-xx-xx

 

相关文章:

  • 2021-12-13
  • 2021-09-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案