编写此查询的正确方法是什么?我的客户表中有一个名为 TimeStamp 的列。尝试查找在 2012 年创建帐户的客户时出现错误。我尝试过:
SELECT 'TimeStamp' AS CreatedDate
FROM customers
WHERE 'CreatedDate' >= '2012-01-01' AND 'CreatedDate' <= '2012-12-31'
并且
SELECT *
FROM customers
WHERE 'TimeStamp' >= '2012-01-01' AND 'TimeStamp' <= '2012-12-31'
并且总是没有结果(应该有数千个)