create table t1 (
#linenum int(6) not null default 0 special=rowid,
name char(12) not null,
city char(11) not null,
birth date not null date_format='DD/MM/YYYY',
hired date not null date_format='DD/MM/YYYY' flag=36,
agehired int(3) as (floor(datediff(hired,birth)/365.25))
)
ENGINE=CONNECT CHARSET=latin1 table_type=FIX file_name='boys.txt' mapped=YES lrecl=47ending=1;
select * from t1;
name city birth hired agehired
John Boston 1986-01-252010-06-0224
Henry Boston 1987-06-072008-04-0120
George San Jose 1981-08-102010-06-0228
Sam Chicago 1979-11-222007-10-1027
James Dallas 1992-05-132009-12-1417
Bill Boston 1986-09-112008-02-1021
drop table t1;
create table t1 (
#linenum int(6) not null default 0 special=rowid,
name char(12) not null,
city char(11) not null,
birth date not null date_format='DD/MM/YYYY',
hired date not null date_format='DD/MM/YYYY' flag=36,
agehired int(3) as (floor(datediff(hired,birth)/365.25)),
index (agehired)
)
ENGINE=CONNECT CHARSET=latin1 table_type=FIX file_name='boys.txt' mapped=YES lrecl=47ending=1; ERROR42000: Table handler doesn't support NULL in given index. Please change column 'agehired' to be NOT NULL or use another handler
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.