������������� SYSTEMCOLUMNS

���� ��������� ���������� � �����, �������� ������� ������������ ������������� ������� SYSTEMCOLUMNS ��� �������� �� ��� ����������� ������. �������, ������� ���������� �� ����� ������� SYSTEMCOLUMNS, ������� ��������� ���� ������� �������( ������� �������, �������� ��� �������):
tname cname datatype cnumber tabowner
Salespeople snum integer 1 Diane
Salespeople sname char 2 Diane
Salespeople city char 3 Diane
Salespeople comm decimal 4 Diane
Customers cnum integer 1 Claire
Customers cname char 2 Claire
Customers city char 3 Claire
Customers rating integer 4 Claire
Customers snum integer 5 Claire
Orders onum integer 1 Diane
Orders odate date 2 Diane
Orders amt decimal 3 Diane
Orders cnum integer 4 Diane
Orders snum integer 5 Diane

��� �� ������ ������, ������ ������ ���� ������� ���������� ������� ������� � ���� ������. ��� ������� ������ ������� ������ ����� ������ �����, ����� ��� ������ ������� ������ ����� ������� ������������, � ������� ��� ���������� �������������, ������, � ���� �������� ������ ����������� ����� �����. ������������� ��������� �������: tname ( ��� ������� ), tabowner (�������� ������� ), � cname ( ��� ������� ), ������ ���������� ��������� ���� ���� �������. ������� datatype( ��� ������ ) ������� ��� �� ����. ������� cnumber ( ����� ������� ) ��������� �� �������������� ����� ������� ������ �������. ��� ���������, �� �������� ��������� ����� �������, ��������, � ��������. ��� �������, �������� ������ �� SYSTFMCATALOG ������� ��������� � ���� �������:
tname owner numcolumns type CO
SYSTEMCOLUMNS System 8 B

��������� SQL ����������, ����� ������������ ��� ������� ����������� ������ ��� �������� � ���� ��������, �� ���������� �������� ������� ��� ����� ����������. ��� ����������� ��������� ������������ � ������ ����� �������, ������� ������, ����������� ������� ������������ ������ ���������� SYSTEMCOLUMNS ������ ��� ������������� ��� ������:
CREATE VIEW Owncolumns AS SELECT * FROM SYSTEMCOLUMNS WHERE tabowner = USER; GRANT SELECT ON Owncolumns TO PUBLIC;