|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to get all columns names from a table.
Hi,
I need do get a columns names from a table? How to do this in pure SQL? I thought about creating a stored procedure or user function with a result of a string ( col1name,col2name ....) I do not know how to count the number of columns in a specyfied table? Any help would be appreciated. Thanks in advance. magicxxxx |
|
#2
|
|||
|
|||
|
Code:
select * from information_schema.columns where table_name = 'OAPIEY' and table_scheme = 'OGRISH' |
|
#3
|
|||
|
|||
|
thanks
Thanxs,that was realy simple and I was going to complicate it
![]() ... my mistake |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > How to get all columns names from a table. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|