![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I want to get metadata about table and column names. When using mysql4, this can be done with 'show tables' and 'desc table'. But i would like to treat these commands as Select statements so i can combine it with more sql, like where, limit, count, order by, etc. For example something like: select (show tables) where table like '%abc%' limit 10; or for Desc only get the name and datatype: select Field, Type from (desc table); Anyone know a syntax that allows me to accomplish this? thanks | |||
| Advertisements |
| | #2 | ||
| bent@lortemail.dk wrote: > I want to get metadata about table and column names. When using > mysql4, this can be done with 'show tables' and 'desc table'. But i > would like to treat these commands as Select statements so i can > combine it with more sql, like where, limit, count, order by, etc. > > For example something like: > select (show tables) where table like '%abc%' limit 10; > > or for Desc only get the name and datatype: > select Field, Type from (desc table); > > Anyone know a syntax that allows me to accomplish this? > > thanks About 2 weeks ago someone asked exactly the same question on this very group. I'm amazed that the search you did before asking this question did not find it! | |||
| | #3 | ||
| > > About 2 weeks ago someone asked exactly the same question on this very > group. > > I'm amazed that the search you did before asking this question did not find > it! Yes, i have searched thoroughly regarding this subject before posting.... Maybe you did not read or understand the question in my post at all? In any case comments like yours now make another populated thread on this issue with no solution, thereby making it even harder to search and find the answer for others. So, answers and suggestions to my post are welcome... but the smart- ass comments you can keep to yourself, sir. | |||
| | #4 | ||
| On Sat, 23 Jun 2007 08:18:08 -0700, bent@lortemail.dk wrote: > >> >> About 2 weeks ago someone asked exactly the same question on this very >> group. >> >> I'm amazed that the search you did before asking this question did not find >> it! > >Yes, i have searched thoroughly regarding this subject before >posting.... >Maybe you did not read or understand the question in my post at all? > >In any case comments like yours now make another populated thread on >this issue with no solution, thereby making it even harder to search >and find the answer for others. > >So, answers and suggestions to my post are welcome... but the smart- >ass comments you can keep to yourself, sir. try: Message-ID: <5d55kpF32i5luU1@mid.dfncis.de> Subject: Treat results of SHOW STATUS as table -- ( Kees ) c[_] The only reason some people get lost in thought is because it's unfamiliar territory. (Paul Fix) (#92) | |||
| | #5 | ||
| Kees Nuyt wrote: > On Sat, 23 Jun 2007 08:18:08 -0700, bent@lortemail.dk wrote: > >> >>> >>> About 2 weeks ago someone asked exactly the same question on this >>> very group. >>> >>> I'm amazed that the search you did before asking this question did >>> not find it! >> >> Yes, i have searched thoroughly regarding this subject before >> posting.... >> Maybe you did not read or understand the question in my post at all? >> >> In any case comments like yours now make another populated thread on >> this issue with no solution, thereby making it even harder to search >> and find the answer for others. >> >> So, answers and suggestions to my post are welcome... but the smart- >> ass comments you can keep to yourself, sir. > > try: > Message-ID: <5d55kpF32i5luU1@mid.dfncis.de> > Subject: Treat results of SHOW STATUS as table But Kees, that is precisely the thread that I tried to direct the OP to! You are brave to try again! | |||
| Featured Websites | ||||
|
![]() |
| Tags: select, show, tables, treat |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Treat results of SHOW STATUS as table | Christoph Burschka | Database | 1 | 07-01-2007 11:01 PM |
| Select Sum acrross tables | Jared | Database | 1 | 07-01-2007 9:35 PM |
| dumping SHOW TABLES to a variable? | yawnmoth | Database | 1 | 07-01-2007 9:34 PM |
| Select, Join & field values - 2 tables | Justin Koivisto | Database | 3 | 07-01-2007 7:00 PM |
| How to SELECT with GROUP BY from 2 tables | Flemming | Database | 8 | 06-10-2007 12:27 AM |
| Featured Websites | ||||
|