Table : tbl_email_scheduler
在这里date_to_send = '2013-10-12' AND send_status = NULL
。(在创建表时,我已将 send_status 默认为 NULL)
mysql:
SELECT
id,
to_users,
subject,
message,
product_id,
date_to_send,
send_status,
status,
createdate
FROM tbl_email_scheduler
WHERE date_to_send = '2013-10-12'
给我结果
但是当我
SELECT
id,
to_users,
subject,
message,
product_id,
date_to_send,
send_status,
status,
createdate
FROM tbl_email_scheduler
WHERE date_to_send = '2013-10-12'
and send_status != 'Y'
它给了我空的结果为什么?请回答。