Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
constraints.test
Package: mysql-4.1.16-win-src.zip [view]
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:
MySQL
Development Platform:
Visual C++
- #
- # Testing of constraints
- # Currently MySQL only ignores the syntax.
- #
- --disable_warnings
- drop table if exists t1;
- --enable_warnings
- create table t1 (a int check (a>0));
- insert into t1 values (1);
- insert into t1 values (0);
- drop table t1;
- create table t1 (a int ,b int, check a>b);
- insert into t1 values (1,0);
- insert into t1 values (0,1);
- drop table t1;
- create table t1 (a int ,b int, constraint abc check (a>b));
- insert into t1 values (1,0);
- insert into t1 values (0,1);
- drop table t1;
- create table t1 (a int null);
- insert into t1 values (1),(NULL);
- drop table t1;
- create table t1 (a int null);
- alter table t1 add constraint constraint_1 unique (a);
- alter table t1 add constraint unique key_1(a);
- alter table t1 add constraint constraint_2 unique key_2(a);
- show create table t1;
- drop table t1;
- # End of 4.1 tests