If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > "Domains" and "Types"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-04, 09:02
Superbiskit Superbiskit is offline
Registered User
 
Join Date: Nov 2004
Location: Northeast US
Posts: 1
Question "Domains" and "Types"

I am trying to set up a database that seems cut out for an SQL "DOMAIN" -- fields that have a restricted syntax for validity and occur in several tables. So, I set the database up and all the CREATE WHATEVER commands appear to work. But, if I try entering any actual data into the tables I get rejected because some type -- generally named like the domain but cased differently or with '_' chars added -- doesn't exist.

Obviously, I'm missing some critical aspect of DOMAINS! Casting functions seems likely, but mine would all be just an assign.

Has anyone actually used domains or user-defined types?

Has anyone even seen a decent tutorial or explanation of the durned things?

Last edited by Superbiskit; 11-02-04 at 09:05.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On