I have a situation where I need to do something like
select 2, id from users;
I think this works at least with Oracle, but it doesn't work in Mysql. Any ideas?
I think you need to assign a name to your arbitrary value:
SELECT 2 AS arbitrary_value, id FROM users;
your request is ok. You may have pinpointed "Doesn't work".