⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ndb_types.test

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 TEST
字号:
--source include/have_ndb.inc--source include/not_embedded.inc--disable_warningsDROP TABLE IF EXISTS t1;--enable_warnings## Test creation of different column types in NDB#CREATE TABLE t1 (  auto int(5) unsigned NOT NULL auto_increment,  string char(10) default "hello",  vstring varchar(10) default "hello",  bin binary(2),  vbin varbinary(7),  tiny tinyint(4) DEFAULT '0' NOT NULL ,  short smallint(6) DEFAULT '1' NOT NULL ,  medium mediumint(8) DEFAULT '0' NOT NULL,  long_int int(11) DEFAULT '0' NOT NULL,  longlong bigint(13) DEFAULT '0' NOT NULL,  real_float float(13,1) DEFAULT 0.0 NOT NULL,  real_double double(16,4),  real_decimal decimal(16,4),  utiny tinyint(3) unsigned DEFAULT '0' NOT NULL,  ushort smallint(5) unsigned zerofill DEFAULT '00000' NOT NULL,  umedium mediumint(8) unsigned DEFAULT '0' NOT NULL,  ulong int(11) unsigned DEFAULT '0' NOT NULL,  ulonglong bigint(13) unsigned DEFAULT '0' NOT NULL,  bits bit(3),		  options enum('one','two','tree') not null,  flags set('one','two','tree') not null,  date_field date,	  year_field year,  time_field time,	  date_time datetime,  time_stamp timestamp not null default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,  PRIMARY KEY (auto),  KEY (utiny),  KEY (tiny),  KEY (short),  KEY any_name (medium),  KEY (longlong),  KEY (real_float),  KEY (ushort),  KEY (umedium),  KEY (ulong),  KEY (ulonglong,ulong),  KEY (options,flags));set @now = now();--sleep 1.5insert into t1 (string,vstring,bin,vbin,tiny,short,medium,long_int,longlong, real_float,real_double, real_decimal,utiny, ushort, umedium,ulong,ulonglong, bits,options,flags,date_field,year_field,time_field,date_time)values("aaaa","aaaa",0xAAAA,0xAAAA,-1,-1,-1,-1,-1,1.1,1.1,1.1,1,1,1,1,1,  b'001','one','one', '1901-01-01','1901','01:01:01','1901-01-01 01:01:01');select auto,string,vstring,bin,vbin,tiny,short,medium,long_int,longlong, real_float,real_double,real_decimal,utiny,ushort,umedium,ulong,ulonglong, bits,options,flags,date_field,year_field,time_field,date_timefrom t1;select time_stamp>@now from t1;set @now = now();--sleep 1.5update t1 set string="bbbb",vstring="bbbb",bin=0xBBBB,vbin=0xBBBB,tiny=-2,short=-2,medium=-2,long_int=-2,longlong=-2,real_float=2.2,real_double=2.2,real_decimal=2.2,utiny=2,ushort=2,umedium=2,ulong=2,ulonglong=2, bits=b'010',options='one',flags='one', date_field='1902-02-02',year_field='1902',time_field='02:02:02',date_time='1902-02-02 02:02:02' where auto=1;select auto,string,vstring,bin,vbin,tiny,short,medium,long_int,longlong, real_float,real_double,real_decimal,utiny,ushort,umedium,ulong,ulonglong, bits,options,flags,date_field,year_field,time_field,date_timefrom t1;select time_stamp>@now from t1;drop table t1;--echo End of 4.1 tests

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -