db2 – cum afli numele unei coloane


e un select simplu

select tabname, colname from syscat.columns where colno=9 and tabname=(select tabname from syscat.tables where tbspaceid=2 and tableid=78)

trebuie sa stii id coloana, id table space si id tabela

salvat pentru posteritate ca sa-l gasesc mai usor :)

[sursa]

Posted on 2011/10/31, in Uncategorized and tagged , . Bookmark the permalink. Lasă un comentariu.

Lasă un răspuns

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Schimbă )

Twitter picture

You are commenting using your Twitter account. Log Out / Schimbă )

Facebook photo

You are commenting using your Facebook account. Log Out / Schimbă )

Connecting to %s

Follow

Get every new post delivered to your Inbox.