|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
sql query
What is wrong with my sql command?
select Table_Name, column_name + ' ' + Upper(data_type) + ' ' + CASE When data_type = bigint then '4' WHEN data_type = char then Cast(character_maximum_length As varchar(10)) ELSE 'Whatever' END 'Columns' from information_schema.columns |
|
#2
|
|||
|
|||
|
Code:
select Table_Name, column_name + ' ' + Upper(data_type) + ' ' + CASE When data_type = 'bigint' then '4' WHEN data_type = 'char' then Cast(character_maximum_length As varchar(10)) ELSE 'Whatever' END Columns from information_schema.columns |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > sql query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|