MySQL Forums
Forum List  »  Oracle

Re: Problems with ALTER TABLE
Posted by: pak attack
Date: March 21, 2006 12:29PM

An example of what I'm trying to do is:

CREATE TABLE EXAMPLE(
SEX VARCHAR(1),
N1 INT(9)
);
ALTER TABLE EXAMPLE ADD CONSTRAINT EXAMPLE_CONST CHECK(SEX IN('M','W'));

ANOTHER EXAMPLE:

ALTER TABLE EXAMPLE ADD CONSTRAINT EXAMPLE2_CONST CHECK(N1 BETWEEN 100 AND 1000);

Anyway, if I work with table restrictions the program says "QUERRY OK!" and the restriction does not work.

I downloaded the Windows x86 (mysql-4.1.18-win32) from: "http://dev.mysql.com/downloads/mysql/4.1.html";

My Operating System is Windows XP.

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
3385
March 21, 2006 11:51AM
2109
March 21, 2006 11:56AM
Re: Problems with ALTER TABLE
2497
March 21, 2006 12:29PM
2130
March 21, 2006 12:55PM
2074
March 21, 2006 01:07PM
1988
March 21, 2006 01:15PM
1990
March 21, 2006 01:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.