IF EXISTS ELSE?
How would one fix this query?
IF EXISTS (SELECT * FROM links WHERE age='10')
SELECT * FROM links WHERE age = '10' ORDER BY
ELSE
SELECT * FROM links ORDER BY
So if a link exists which is 10 days exactly then it would be displayed
otherwise it would be random.
No comments:
Post a Comment