PDO datetime format for MSSQL/dblib

前端 未结 3 940
夕颜
夕颜 2021-02-08 10:10

MSSQL 2005 database has collation \"German_Phonebook_BIN\" (but that\'s not important). Connection to db is done via PDO and FreeTDS (using PHP under Debian Squeeze). When I try

3条回答
  •  被撕碎了的回忆
    2021-02-08 10:40

    check the setting in /etc/freetds/locales.conf or wherever FREETDSCONF points to - for an example see https://www.centos.org/modules/newbb/viewtopic.php?topic_id=29646.

    Another option could be to use convert in your SQL statement...

提交回复
热议问题