Microsoft
Software
Hardware
Network
Question : MySQL Select From multiple Tables With Common Fields
Greetings I have 5 tables (cars, boats, music, books, electronics) that all have 5 common fields
$userID
$anumber
$title
$price
$comments
I'm trying to select only the common fields from all 5 tables WHERE the $userID = A Given $userID, for example of someone who is logged in? How would this query be setup?
Answer : MySQL Select From multiple Tables With Common Fields
select userID, anumber, title, price, comments from cars where userID=$userID
union all
select userID, anumber, title, price, comments from boats where userID=$userID
...
etc
Random Solutions
Office 2010 MSI GPO Installation
Blackberry Syncing Problem - "No Available Message Stores" error when synchronizing
mcafee EPO script to remove agent and virusscan
Looking for a Font
iSCSI target status dead - ESXi 4
vbscript to extract "logon as a batch" "logon as a service" from a list of Servers
Deleting old backups in Symantec Exec Backup
Help with mysql delete duplicates query
That's not contempt. THIS is contempt
Ho Do you Create a timeline Planner/diary in vb.net