mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
cc138b5a3b
- added compatability with 5.0 - added test case for compatability with 5.0 and 5.1
582 lines
17 KiB
Text
582 lines
17 KiB
Text
use test;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
|
|
CREATE TABLE `t1_c` (
|
|
`capgoaledatta` smallint(5) unsigned NOT NULL auto_increment,
|
|
`goaledatta` char(2) NOT NULL default '',
|
|
`maturegarbagefa` varchar(32) NOT NULL default '',
|
|
PRIMARY KEY (`capgoaledatta`,`goaledatta`,`maturegarbagefa`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t1_c` VALUES (2,'3','q3plus.qt'),(4,'4','q3plus.qt'),(1,'3','q3.net'),(3,'4','q3.net'),(3,'20','threetrees.qt');
|
|
CREATE TABLE `t2_c` (
|
|
`capgotod` smallint(5) unsigned NOT NULL auto_increment,
|
|
`gotod` smallint(5) unsigned NOT NULL default '0',
|
|
`goaledatta` char(2) default NULL,
|
|
`maturegarbagefa` varchar(32) default NULL,
|
|
`descrpooppo` varchar(64) default NULL,
|
|
`svcutonsa` varchar(64) NOT NULL default '',
|
|
PRIMARY KEY (`capgotod`),
|
|
KEY `i_quadaddsvr` (`gotod`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t2_c` VALUES (5,4,'','q3.net','addavp:MK_CASELECTOR=1','postorod rattoaa'),(2,1,'4','','addavp:MK_BRANDTAD=345','REDS Brandtad'),(3,2,'4','q3.net','execorder','fixedRatediPO REDS'),(1,1,'3','','addavp:MK_BRANDTAD=123','TEST Brandtad'),(6,5,'','told.q3.net','addavp:MK_BRANDTAD=123','Brandtad Toldzone'),(4,3,'3','q3.net','addavp:MK_POOLHINT=2','ratedi PO TEST');
|
|
CREATE TABLE `t3_c` (
|
|
`CapGoaledatta` smallint(5) unsigned NOT NULL default '0',
|
|
`capgotod` smallint(5) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (`capgotod`,`CapGoaledatta`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t3_c` VALUES (5,3),(2,4),(5,4),(1,3);
|
|
CREATE TABLE `t4_c` (
|
|
`capfa` bigint(20) unsigned NOT NULL auto_increment,
|
|
`realm` varchar(32) NOT NULL default '',
|
|
`authpwchap` varchar(32) default NULL,
|
|
`fa` varchar(32) NOT NULL default '',
|
|
`payyingatta` tinyint(4) NOT NULL default '0',
|
|
`status` char(1) default NULL,
|
|
PRIMARY KEY (`fa`,`realm`),
|
|
KEY `capfa` (`capfa`),
|
|
KEY `i_quadentity` (`fa`,`realm`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t4_c` VALUES (18,'john.smith','q3.net','dessjohn.smith',0,NULL),(21,'quad_katt_with_brandtad','q3.net','acne',0,NULL),(22,'quad_katt_carattoaa','q3.net','acne',0,NULL),(26,'436462612809','sqasdt.q3.net','N/A',0,'6'),(19,'john','smith.qt','dessjohn',0,NULL),(33,'436643196120','sqasdt.q3.net','N/A',1,'6'),(28,'436642900019','sqasdt.q3.net','N/A',0,'6'),(30,'436462900209','sqasdt.q3.net','N/A',0,'6'),(16,'436640006666','sqasdt.q3.net','',0,NULL),(19,'dette','el-redun.com','dessdette',0,NULL),(12,'quad_kattPP','q3.net','acne',2,NULL),(14,'436640008888','sqasdt.q3.net','',0,NULL),(29,'463624900028','sqasdt.q3.net','N/A',0,'6'),(15,'436640099099','sqasdt.q3.net','',0,NULL),(13,'pap','q3plus.qt','acne',1,NULL),(19,'436642612091','sqasdt.q3.net','N/A',0,'6'),(12,'quad_katt','q3.net','acne',0,NULL),(11,'quad_kattVK','q3.net','acne',1,NULL),(32,'463641969502','sqasdt.q3.net','N/A',1,'6'),(20,'joe','q3.net','joedesswd',0,NULL),(29,'436642900034','sqasdt.q3.net','N/A',0,'6'),(25,'contind','armerde.qt','acne',1,NULL);
|
|
CREATE TABLE `t5_c` (
|
|
`capfa` bigint(20) unsigned NOT NULL default '0',
|
|
`gotod` smallint(5) unsigned NOT NULL default '0',
|
|
`orderutonsa` varchar(64) NOT NULL default '',
|
|
PRIMARY KEY (`capfa`,`gotod`,`orderutonsa`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t5_c` VALUES (21,2,''),(21,1,''),(22,4,'');
|
|
CREATE TABLE `t6_c` (
|
|
`capfa_parent` bigint(20) unsigned NOT NULL default '0',
|
|
`capfa_child` bigint(20) unsigned NOT NULL default '0',
|
|
`relatta` smallint(5) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (`capfa_child`,`capfa_parent`,`relatta`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t6_c` VALUES (15,16,0),(19,20,0),(18326932092909551615,30,0),(26,29,0),(18326932092909551615,29,0),(19,18,0),(26,28,0),(12,14,0);
|
|
CREATE TABLE `t7_c` (
|
|
`dardpo` char(15) NOT NULL default '',
|
|
`dardtestard` tinyint(3) unsigned NOT NULL default '0',
|
|
`FastFA` char(5) NOT NULL default '',
|
|
`FastCode` char(6) NOT NULL default '',
|
|
`Fastca` char(1) NOT NULL default '',
|
|
`Fastmag` char(1) NOT NULL default '',
|
|
`Beareratta` char(2) NOT NULL default '',
|
|
PRIMARY KEY (`dardpo`,`dardtestard`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t7_c` VALUES ('2.6.2.4',24,'CECHP','54545','0','0','5'),('2.2.5.4',26,'CANFA','33223','1','1','4'),('4.3.2.4',28,'ITALD','54222','1','0','5'),('129..0.0.eins',28,'G','99999','1','1','5'),('1.1.1.1',24,'AUTPT','32323','0','1','3');
|
|
CREATE TABLE `t8_c` (
|
|
`kattjame` varchar(32) NOT NULL default '',
|
|
`realm` varchar(32) NOT NULL default '',
|
|
`realm_entered` varchar(32) NOT NULL default '',
|
|
`maturegarbagefa` varchar(32) NOT NULL default '',
|
|
`hunderaaarbagefa_parent` varchar(32) NOT NULL default '',
|
|
`kattjame_entered` varchar(32) NOT NULL default '',
|
|
`hunderaaarbagefa` varchar(32) NOT NULL default '',
|
|
`gest` varchar(16) default NULL,
|
|
`hassetino` varchar(16) NOT NULL default '',
|
|
`aaaproxysessfa` varchar(255) default NULL,
|
|
`autologonallowed` char(1) default NULL,
|
|
`squardporoot` varchar(15) NOT NULL default '',
|
|
`naspo` varchar(15) default NULL,
|
|
`beareratta` char(2) default NULL,
|
|
`fastCode` varchar(6) default NULL,
|
|
`fastFA` varchar(5) default NULL,
|
|
`fastca` char(1) default NULL,
|
|
`fastmag` char(1) default NULL,
|
|
`lastupdate` datetime default NULL,
|
|
`hassetistart` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
`accthassetitime` int(10) unsigned default NULL,
|
|
`acctoutputoctets` bigint(20) unsigned default NULL,
|
|
`acctinputoctets` bigint(20) unsigned default NULL,
|
|
PRIMARY KEY (`kattjame`,`hunderaaarbagefa`,`hassetistart`,`hassetino`),
|
|
KEY `squardporoot` (`squardporoot`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t8_c` VALUES ('4tt45345235','pap','q3plus.qt','q3plus.qt','q3.net','436643196120','436643196929','8956234534568968','5524595699','uxasmt21.net.acne.qt/481889229462692422','','1.1.1.1','2.2.4.6','4','86989','34','x','x','2012-03-12 12:55:34','2012-12-05 11:20:04',3223433,3369,9565),('4545435545','john','q3.net','q3.net','acne.li','436643196120','436643196929','45345234568968','995696699','uxasmt21.net.acne.qt/481889229462692423','','1.1.1.1','2.2.9.8','2','86989','34','x','x','2012-03-12 11:35:03','2012-12-05 08:50:04',8821923,169,3565),('versteckter_q3net_katt','joe','q3.net','elredun.com','q3.net','436643196120','436643196939','91341234568968','695595699','uxasmt21.net.acne.qt/481889229462692421','','1.1.1.1','2.5.2.5','3','86989','34','x','x','2012-03-12 18:35:04','2012-12-05 12:35:04',1923123,9569,6565);
|
|
CREATE TABLE `t9_c` (
|
|
`kattjame` varchar(32) NOT NULL default '',
|
|
`kattjame_entered` varchar(32) NOT NULL default '',
|
|
`realm` varchar(32) NOT NULL default '',
|
|
`realm_entered` varchar(32) NOT NULL default '',
|
|
`maturegarbagefa` varchar(32) NOT NULL default '',
|
|
`hunderaaarbagefa` varchar(32) NOT NULL default '',
|
|
`hunderaaarbagefa_parent` varchar(32) NOT NULL default '',
|
|
`gest` varchar(16) default NULL,
|
|
`hassetino` varchar(16) NOT NULL default '',
|
|
`squardporoot` varchar(15) NOT NULL default '',
|
|
`naspo` varchar(15) default NULL,
|
|
`beareratta` char(2) default NULL,
|
|
`fastCode` varchar(6) default NULL,
|
|
`fastFA` varchar(5) default NULL,
|
|
`fastca` char(1) default NULL,
|
|
`fastmag` char(1) default NULL,
|
|
`lastupdate` datetime default NULL,
|
|
`hassetistart` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
`accthassetitime` int(10) unsigned default NULL,
|
|
`actcoutpuocttets` bigint(20) unsigned default NULL,
|
|
`actinputocctets` bigint(20) unsigned default NULL,
|
|
`terminateraste` tinyint(3) unsigned default NULL,
|
|
PRIMARY KEY (`kattjame`,`hunderaaarbagefa`,`hassetistart`,`hassetino`)
|
|
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
|
|
INSERT INTO `t9_c` VALUES ('3g4jh8gar2t','joe','q3.net','elredun.com','q3.net','436643316120','436643316939','91341234568968','695595699','1.1.1.1','2.2.6.2','3','86989','34','x','x','2012-03-12 18:35:04','2012-12-05 12:35:04',3123123,9569,6565,1),('4tt45345235','pap','q3plus.qt','q3plus.qt','q3.net','436643316120','436643316939','8956234534568968','5254595969','1.1.1.1','8.6.2.2','4','86989','34','x','x','2012-03-12 12:55:34','2012-12-05 11:20:04',3223433,3369,9565,2),('4545435545','john','q3.net','q3.net','acne.li','436643316120','436643316939','45345234568968','995696699','1.1.1.1','2.9.9.2','2','86998','34','x','x','2012-03-12 11:35:03','2012-12-05 08:50:04',8823123,169,3565,3);
|
|
create table t1 engine=myisam as select * from t1_c;
|
|
create table t2 engine=myisam as select * from t2_c;
|
|
create table t3 engine=myisam as select * from t3_c;
|
|
create table t4 engine=myisam as select * from t4_c;
|
|
create table t5 engine=myisam as select * from t5_c;
|
|
create table t6 engine=myisam as select * from t6_c;
|
|
create table t7 engine=myisam as select * from t7_c;
|
|
create table t8 engine=myisam as select * from t8_c;
|
|
create table t9 engine=myisam as select * from t9_c;
|
|
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info (id INT, backup_id INT) ENGINE = HEAP;
|
|
DELETE FROM test.backup_info;
|
|
LOAD DATA INFILE '../tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
|
|
SELECT @the_backup_id:=backup_id FROM test.backup_info;
|
|
@the_backup_id:=backup_id
|
|
<the_backup_id>
|
|
DROP TABLE test.backup_info;
|
|
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
|
|
select count(*) from t1;
|
|
count(*)
|
|
5
|
|
select count(*) from t1_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t1 union
|
|
select * from t1_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t2;
|
|
count(*)
|
|
6
|
|
select count(*) from t2_c;
|
|
count(*)
|
|
6
|
|
select count(*)
|
|
from (select * from t2 union
|
|
select * from t2_c) a;
|
|
count(*)
|
|
6
|
|
select count(*) from t3;
|
|
count(*)
|
|
4
|
|
select count(*) from t3_c;
|
|
count(*)
|
|
4
|
|
select count(*)
|
|
from (select * from t3 union
|
|
select * from t3_c) a;
|
|
count(*)
|
|
4
|
|
select count(*) from t4;
|
|
count(*)
|
|
22
|
|
select count(*) from t4_c;
|
|
count(*)
|
|
22
|
|
select count(*)
|
|
from (select * from t4 union
|
|
select * from t4_c) a;
|
|
count(*)
|
|
22
|
|
select count(*) from t5;
|
|
count(*)
|
|
3
|
|
select count(*) from t5_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t5 union
|
|
select * from t5_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t6;
|
|
count(*)
|
|
8
|
|
select count(*) from t6_c;
|
|
count(*)
|
|
8
|
|
select count(*)
|
|
from (select * from t6 union
|
|
select * from t6_c) a;
|
|
count(*)
|
|
8
|
|
select count(*) from t7;
|
|
count(*)
|
|
5
|
|
select count(*) from t7_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t7 union
|
|
select * from t7_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t8;
|
|
count(*)
|
|
3
|
|
select count(*) from t8_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t8 union
|
|
select * from t8_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t9;
|
|
count(*)
|
|
3
|
|
select count(*) from t9_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t9 union
|
|
select * from t9_c) a;
|
|
count(*)
|
|
3
|
|
ALTER TABLE t1_c
|
|
PARTITION BY RANGE (`capgoaledatta`)
|
|
(PARTITION p0 VALUES LESS THAN MAXVALUE);
|
|
ALTER TABLE t2_c
|
|
PARTITION BY LIST(`capgotod`)
|
|
(PARTITION p0 VALUES IN (0,1,2,3,4,5,6));
|
|
ALTER TABLE t3_c
|
|
PARTITION BY HASH (`CapGoaledatta`);
|
|
ALTER TABLE t5_c
|
|
PARTITION BY HASH (`capfa`)
|
|
PARTITIONS 4;
|
|
ALTER TABLE t6_c
|
|
PARTITION BY LINEAR HASH (`relatta`)
|
|
PARTITIONS 4;
|
|
ALTER TABLE t7_c
|
|
PARTITION BY LINEAR KEY (`dardtestard`);
|
|
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info (id INT, backup_id INT) ENGINE = HEAP;
|
|
DELETE FROM test.backup_info;
|
|
LOAD DATA INFILE '../tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
|
|
SELECT @the_backup_id:=backup_id FROM test.backup_info;
|
|
@the_backup_id:=backup_id
|
|
<the_backup_id>
|
|
DROP TABLE test.backup_info;
|
|
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
|
|
select count(*) from t1;
|
|
count(*)
|
|
5
|
|
select count(*) from t1_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t1 union
|
|
select * from t1_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t2;
|
|
count(*)
|
|
6
|
|
select count(*) from t2_c;
|
|
count(*)
|
|
6
|
|
select count(*)
|
|
from (select * from t2 union
|
|
select * from t2_c) a;
|
|
count(*)
|
|
6
|
|
select count(*) from t3;
|
|
count(*)
|
|
4
|
|
select count(*) from t3_c;
|
|
count(*)
|
|
4
|
|
select count(*)
|
|
from (select * from t3 union
|
|
select * from t3_c) a;
|
|
count(*)
|
|
4
|
|
select count(*) from t4;
|
|
count(*)
|
|
22
|
|
select count(*) from t4_c;
|
|
count(*)
|
|
22
|
|
select count(*)
|
|
from (select * from t4 union
|
|
select * from t4_c) a;
|
|
count(*)
|
|
22
|
|
select count(*) from t5;
|
|
count(*)
|
|
3
|
|
select count(*) from t5_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t5 union
|
|
select * from t5_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t6;
|
|
count(*)
|
|
8
|
|
select count(*) from t6_c;
|
|
count(*)
|
|
8
|
|
select count(*)
|
|
from (select * from t6 union
|
|
select * from t6_c) a;
|
|
count(*)
|
|
8
|
|
select count(*) from t7;
|
|
count(*)
|
|
5
|
|
select count(*) from t7_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t7 union
|
|
select * from t7_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t8;
|
|
count(*)
|
|
3
|
|
select count(*) from t8_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t8 union
|
|
select * from t8_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t9;
|
|
count(*)
|
|
3
|
|
select count(*) from t9_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t9 union
|
|
select * from t9_c) a;
|
|
count(*)
|
|
3
|
|
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
|
|
select count(*) from t1;
|
|
count(*)
|
|
5
|
|
select count(*) from t1_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t1 union
|
|
select * from t1_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t2;
|
|
count(*)
|
|
6
|
|
select count(*) from t2_c;
|
|
count(*)
|
|
6
|
|
select count(*)
|
|
from (select * from t2 union
|
|
select * from t2_c) a;
|
|
count(*)
|
|
6
|
|
select count(*) from t3;
|
|
count(*)
|
|
4
|
|
select count(*) from t3_c;
|
|
count(*)
|
|
4
|
|
select count(*)
|
|
from (select * from t3 union
|
|
select * from t3_c) a;
|
|
count(*)
|
|
4
|
|
select count(*) from t4;
|
|
count(*)
|
|
22
|
|
select count(*) from t4_c;
|
|
count(*)
|
|
22
|
|
select count(*)
|
|
from (select * from t4 union
|
|
select * from t4_c) a;
|
|
count(*)
|
|
22
|
|
select count(*) from t5;
|
|
count(*)
|
|
3
|
|
select count(*) from t5_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t5 union
|
|
select * from t5_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t6;
|
|
count(*)
|
|
8
|
|
select count(*) from t6_c;
|
|
count(*)
|
|
8
|
|
select count(*)
|
|
from (select * from t6 union
|
|
select * from t6_c) a;
|
|
count(*)
|
|
8
|
|
select count(*) from t7;
|
|
count(*)
|
|
5
|
|
select count(*) from t7_c;
|
|
count(*)
|
|
5
|
|
select count(*)
|
|
from (select * from t7 union
|
|
select * from t7_c) a;
|
|
count(*)
|
|
5
|
|
select count(*) from t8;
|
|
count(*)
|
|
3
|
|
select count(*) from t8_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t8 union
|
|
select * from t8_c) a;
|
|
count(*)
|
|
3
|
|
select count(*) from t9;
|
|
count(*)
|
|
3
|
|
select count(*) from t9_c;
|
|
count(*)
|
|
3
|
|
select count(*)
|
|
from (select * from t9 union
|
|
select * from t9_c) a;
|
|
count(*)
|
|
3
|
|
drop table t1_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
|
|
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info (id INT, backup_id INT) ENGINE = HEAP;
|
|
DELETE FROM test.backup_info;
|
|
LOAD DATA INFILE '../tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
|
|
SELECT @the_backup_id:=backup_id FROM test.backup_info;
|
|
@the_backup_id:=backup_id
|
|
<the_backup_id>
|
|
DROP TABLE test.backup_info;
|
|
Create table test/def/t2_c failed: Translate frm error
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
drop table if exists t2_c;
|
|
520093696,<the_backup_id>
|
|
DROP DATABASE IF EXISTS BANK;
|
|
CREATE DATABASE BANK default charset=latin1 default collate=latin1_bin;
|
|
USE BANK;
|
|
SHOW TABLES;
|
|
Tables_in_BANK
|
|
ACCOUNT
|
|
GL
|
|
ACCOUNT_TYPE
|
|
TRANSACTION
|
|
SYSTEM_VALUES
|
|
SELECT * FROM GL ORDER BY TIME,ACCOUNT_TYPE;
|
|
TIME ACCOUNT_TYPE BALANCE DEPOSIT_COUNT DEPOSIT_SUM WITHDRAWAL_COUNT WITHDRAWAL_SUM PURGED
|
|
0 0 10000000 0 0 0 0 1
|
|
0 1 30000 0 0 0 0 1
|
|
0 2 20000 0 0 0 0 1
|
|
0 3 20000 0 0 0 0 1
|
|
0 4 20000 0 0 0 0 1
|
|
1 0 10000000 0 0 0 0 1
|
|
1 1 30000 0 0 0 0 1
|
|
1 2 20000 0 0 0 0 1
|
|
1 3 20000 0 0 0 0 1
|
|
1 4 20000 0 0 0 0 1
|
|
2 0 9857062 54 225197 76 368135 1
|
|
2 1 60601 174 822920 181 792319 1
|
|
2 2 68832 117 531214 98 482382 1
|
|
2 3 83550 106 521953 104 458403 1
|
|
2 4 19955 118 532084 110 532129 1
|
|
3 0 9732896 62 289563 88 413729 1
|
|
3 1 51056 202 895888 193 905433 0
|
|
3 2 67183 122 596787 127 598436 1
|
|
3 3 97669 159 761743 141 747624 1
|
|
3 4 141196 140 727808 136 606567 1
|
|
4 0 9616621 138 603930 142 720205 0
|
|
4 1 178927 348 1741521 344 1613650 0
|
|
4 2 52141 236 1169929 232 1184971 0
|
|
4 3 48938 228 1147957 244 1196688 0
|
|
4 4 193373 246 1257982 234 1205805 0
|
|
5 0 9515281 156 726253 166 827593 0
|
|
5 1 253798 597 2840640 545 2765769 0
|
|
5 2 102776 362 1821680 364 1771045 0
|
|
5 3 87349 359 1778652 375 1740241 0
|
|
5 4 130796 351 1727448 375 1790025 0
|
|
SELECT * FROM ACCOUNT ORDER BY ACCOUNT_ID;
|
|
ACCOUNT_ID OWNER BALANCE ACCOUNT_TYPE
|
|
0 0 9531306 0
|
|
1 3001 123844 1
|
|
2 3002 30800 2
|
|
3 3003 3133 3
|
|
4 3004 6524 4
|
|
5 3005 80152 1
|
|
6 3006 107390 1
|
|
7 3007 69448 2
|
|
8 3008 663 3
|
|
9 3009 136740 4
|
|
SELECT COUNT(*) FROM TRANSACTION;
|
|
COUNT(*)
|
|
6649
|
|
SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
|
|
SYSTEM_VALUES_ID VALUE
|
|
0 4767
|
|
1 6
|
|
TRUNCATE GL;
|
|
TRUNCATE ACCOUNT;
|
|
TRUNCATE TRANSACTION;
|
|
TRUNCATE SYSTEM_VALUES;
|
|
TRUNCATE ACCOUNT_TYPE;
|
|
SELECT * FROM GL ORDER BY TIME,ACCOUNT_TYPE;
|
|
TIME ACCOUNT_TYPE BALANCE DEPOSIT_COUNT DEPOSIT_SUM WITHDRAWAL_COUNT WITHDRAWAL_SUM PURGED
|
|
0 0 10000000 0 0 0 0 1
|
|
0 1 30000 0 0 0 0 1
|
|
0 2 20000 0 0 0 0 1
|
|
0 3 20000 0 0 0 0 1
|
|
0 4 20000 0 0 0 0 1
|
|
1 0 10000000 0 0 0 0 1
|
|
1 1 30000 0 0 0 0 1
|
|
1 2 20000 0 0 0 0 1
|
|
1 3 20000 0 0 0 0 1
|
|
1 4 20000 0 0 0 0 1
|
|
2 0 10000000 0 0 0 0 1
|
|
2 1 30000 0 0 0 0 1
|
|
2 2 20000 0 0 0 0 1
|
|
2 3 20000 0 0 0 0 1
|
|
2 4 20000 0 0 0 0 1
|
|
3 0 9963591 14 59111 19 95520 0
|
|
3 1 44264 49 255559 53 241295 0
|
|
3 2 25515 39 177806 36 172291 0
|
|
3 3 16779 26 129200 29 132421 0
|
|
3 4 39851 43 182771 34 162920 0
|
|
4 0 9733661 141 632616 162 862546 0
|
|
4 1 63853 426 2005337 415 1985748 0
|
|
4 2 140473 314 1548632 297 1433674 0
|
|
4 3 13481 310 1528043 324 1531341 0
|
|
4 4 138532 316 1540206 309 1441525 0
|
|
SELECT * FROM ACCOUNT ORDER BY ACCOUNT_ID;
|
|
ACCOUNT_ID OWNER BALANCE ACCOUNT_TYPE
|
|
0 0 9679579 0
|
|
1 3001 18130 1
|
|
2 3002 12318 2
|
|
3 3003 3049 3
|
|
4 3004 39517 4
|
|
5 3005 37051 1
|
|
6 3006 144497 1
|
|
7 3007 130670 2
|
|
8 3008 13747 3
|
|
9 3009 11442 4
|
|
SELECT COUNT(*) FROM TRANSACTION;
|
|
COUNT(*)
|
|
4056
|
|
SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
|
|
SYSTEM_VALUES_ID VALUE
|
|
0 2297
|
|
1 5
|
|
DROP DATABASE BANK;
|