I have 3 SQL tables that are defined as follows:
CREATE TABLE organs( abbreviation VARCHAR(16),
The 3 fields primarily use VARCHAR (16) because they are connected and have the same length limit.
Is there a (preferably portable) way to put '16' in a constant / variable and a link that is instead in a CREATE TABLE? eg. something like this would be nice:
CREATE TABLE slides( title VARCHAR(MAX_TITLE_LENGTH),
I am using PostgreSQL 8.4.
source share