Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Returning a column data-type for just one column in table

$
0
0

This data can be found in the system catalog using the SYSCOLUMNS view.

 

Query on sample database:

 

SELECT    coltype
FROM    SYS.SYSCOLUMNS
WHERE    tname = 'Contacts'      // Table name    AND creator = 'GROUPO'  // Table owner    AND cname = 'PHONE'     // Column name

Result:

 

coltype
=====
char

Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>