Create Domain

Dear Experts, please help !
The next search condition allows only cities in California to be entered into columns that are
based on the CALIFORNIA domain:
CREATE DOMAIN California AS VARCHAR(25) CHECK ( VALUE LIKE "%, CA") ;

What does 'CA' means ? a table, a query or something ? please tell me and give me an example

Thanks from apin.

* Quoted from  Interbase 5 Data Definition Guide Page 85

pc_melsaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rwilson032697Commented:
CA is the two letter abbreviation for the state of California. It is just a part of the string in the LIKE expression

Cheers,

Raymond.
0
pc_melsaAuthor Commented:
Please give me example, thanks !
0
rwilson032697Commented:
There's not example to give. CA is just an abbreviation for california state, like NY is the abbreviation for New York state. Its just part of the search string, it has no other meaning for the database other than being the string "CA"

Cheers,

Raymond.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
snoop_doggy_doggCommented:
I think an example showing AZ being Arizona might be better.

Woof
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.