我本地自己装的SQL SERVER的数据库,通过ODBC链接了一个MYSQL 的数据库,查询的时候加日期条件为什么会报错:
select * FROM openquery(ERP, 'select * from opa where create_time>='2023-3-1'' )
where后面去掉正常
select * FROM openquery(ERP, 'select * from opa where create_time>=''2023-3-1''')
select * FROM openquery(ERP, 'select * from opa') where create_time>='2023-03-01'
https://www.bemhome.com/post/154.html