rgb192
asked on
one query and one result set
select * from a_messages where profile_id='username' order by message_id desc
select * from a_messages2 where profile_id='username' order by message_id desc
want one query with one result set because tables have same structure
select * from a_messages2 where profile_id='username' order by message_id desc
want one query with one result set because tables have same structure
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
#@(*&Q#(*(&$ ANGELLLL!!!!!!
LOL
one misype :(
LOL
one misype :(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i know its a monday I wasn't quite awake yet and i dont drink coffee
:)
:)
ASKER
https://www.experts-exchange.com/M_4365474.html
Error Code: 1221. Incorrect usage of UNION and ORDER BY
second query worked
thanks for explanations also
Error Code: 1221. Incorrect usage of UNION and ORDER BY
second query worked
thanks for explanations also
UNION
select * from a_messages2 where profile_id='username' order by message_id desc