Table creation/Postal addresses: Difference between revisions

m
whitespace
(Slightly better description of the task)
m (whitespace)
Line 108:
addrZIP Char(10) not null
)</lang>
 
 
=={{header|J}}==
J is a programming language, not a database, but it ships with a database built in the programming language called [[j:JDB|JDB]]. Using that, assuming <tt>hd</tt> is your database, then:
 
<lang j> Create__hd 'Address';noun define
<lang j>
Create__hd 'Address';noun define
addrID autoid;
addrStreet varchar
Line 120 ⟶ 118:
addrState char
addrZip char
)</lang j>
)
</lang>
 
Of course J can connect external databases too, using e.g. [[j:Studio/ODBC%20Basics|ODBC]]. See the [[j:DB|list of J database topics]].
Line 303 ⟶ 300:
 
=={{header|SAS}}==
<lang sql>DATA address;
LENGTH addrID 8. street 50$ city 25$ state 2$ zip 20$;
STOP;
RUN;</lang>
 
=={{header|Tcl}}+{{header|SQLite}}==
Anonymous user