Postgresql使用注意小技巧

  1. 新建表列名尽量使用小写,使用大写查询时需要注意要对列名加双引号
  2. 插入timestamp时间戳数据时需要单引号
    update tb_user set invoke_id = '2017-04-23 00:00:00'
  3. 插入文本数据时需要加单引号
    insert into tb_user values ('collin', '1234')

你可能感兴趣的:(spring,boot服务器搭建,postgresql)