views:

51

answers:

2

I have a situation where I need to do something like

select 2, id from users;

I think that would work at least with Oracle but it doesn't work in Mysql. Any ideas?

+3  A: 

I think you'll need to assign a name for your arbitrary value:

SELECT 2 AS arbitrary_value, id FROM users;
BrynJ
A: 

your request is ok. Maybe you sould define more precisely "Doesn't work".

Antoine Claval