|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
SELECT FROM wildcard?
Hi,
I'm trying to get a search page to search all tables in my database, but when I use * and % I get an SQL syntax error. Basically I want the SQL to be like this: SELECT * FROM * WHERE fnCat = var I'd rather not write a loop that fills in all the table names delimited with commas using the MSys table listing feature, but if its necessary I will. Thanks! Scott |
|
#2
|
|||
|
|||
|
you could build a view from your list of tables
so this way you will get a dynamic search of all your tables if some tables have less fields than the others, just make some fields up (in the select for the view) |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > SELECT FROM wildcard? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|