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 > MySQL > constraints

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-11, 23:13
raindropz raindropz is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
constraints

what is constraint? when do we need to constraint? please explain, thanks in advanced.
Reply With Quote
  #2 (permalink)  
Old 04-23-11, 04:08
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
what is google?
when do we need to use it?
how do we use it?
Let me google that for you
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 04-24-11, 04:39
raindropz raindropz is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
Quote:
Originally Posted by healdem View Post
what is google?
when do we need to use it?
how do we use it?
Let me google that for you
what is the use of dbforums.com then?
when do we need to use dbforums.com?
thanks
Reply With Quote
  #4 (permalink)  
Old 04-24-11, 05:10
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by raindropz View Post
what is the use of dbforums.com then?
when do we need to use dbforums.com?
When you have a specific problem (e.g. a SQL statement or a design question) that you cannot solve by reading the manual.
Reply With Quote
  #5 (permalink)  
Old 04-24-11, 18:32
raindropz raindropz is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
I don't understand the manual, isn't my question specific? thanks.
Reply With Quote
  #6 (permalink)  
Old 04-24-11, 19:09
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by raindropz View Post
isn't my question specific?
no, not really

here, let me answer it with exactly the same amount of specificity as your question --

a constraint is a restriction on the data that will be accepted by the database

when do we need to constrain? when we want the database to enforce a restriction on the data

happy now?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 04-24-11, 19:26
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by r937 View Post
when we want the database to enforce a restriction on the data
Would we ever want the database to not enforce the restriction?
Reply With Quote
  #8 (permalink)  
Old 04-24-11, 23:13
raindropz raindropz is offline
Registered User
 
Join Date: Apr 2011
Posts: 14
Quote:
Originally Posted by r937 View Post
no, not really

here, let me answer it with exactly the same amount of specificity as your question --

a constraint is a restriction on the data that will be accepted by the database

when do we need to constrain? when we want the database to enforce a restriction on the data

happy now?
can you please give examples? thanks.
Reply With Quote
  #9 (permalink)  
Old 04-25-11, 00:13
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by raindropz View Post
can you please give examples? thanks.
lots of them right here --> database constraint examples
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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