可以执行以下操作吗?无法为我工作
SELECT * FROM DB_1593 WHERE DB_1593_field_0_3 = '--skills--' IF('--dateTime--' < NOW())
答案 0 :(得分:1)
尝试一下:
SELECT *
FROM DB_1593
WHERE DB_1593_field_0_3 = '--skills--'
AND '--dateTime--' < NOW()
甚至可以奏效:
SELECT *
FROM DB_1593
WHERE DB_1593_field_0_3 = '--skills--'
AND IF('--dateTime--' < NOW())
答案 1 :(得分:0)
您可以尝试以下查询:
SELECT * FROM DB_1593
WHERE DB_1593_field_0_3 = '--skills--' AND IF('--dateTime--' < NOW())
答案 2 :(得分:-1)
您可以将IF子句用作
DECLARE @COLUMN_NAME = 2
IF (@COLUMN_NAME <= 3)
Select * FROM DB_1593 WHERE DB_1593_field_0_3 = '--skills--'