Is there a SQL statement that can return the type of a column in a table?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
For Apache Derby as shown in this answer:
In vb60 you can do this:
'and sample (valRs is my function for rs.fields("CHARACTER_MAXIMUM_LENGTH").value):
in oracle SQL you would do this:
If you're using MySQL you could try
SHOW COLUMNS on dev.mysql.com
Otherwise you should be able to do
Use this query to get Schema, Table, Column,Type, max_length, is_nullable
Another variation using MS SQL: