| 1 |
drop table if exists test; |
| 2 |
SET sql_mode = 'NO_ENGINE_SUBSTITUTION'; |
| 3 |
CREATE TABLE test ( |
| 4 |
gnr INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
| 5 |
url VARCHAR(80) DEFAULT '' NOT NULL, |
| 6 |
shortdesc VARCHAR(200) DEFAULT '' NOT NULL, |
| 7 |
longdesc text DEFAULT '' NOT NULL, |
| 8 |
description VARCHAR(80) DEFAULT '' NOT NULL, |
| 9 |
name VARCHAR(80) DEFAULT '' NOT NULL, |
| 10 |
FULLTEXT(url,description,shortdesc,longdesc), |
| 11 |
PRIMARY KEY(gnr) |
| 12 |
) ENGINE = InnoDB; |
| 13 |
Warnings: |
| 14 |
Warning 1681 Integer display width is deprecated and will be removed in a future release. |
| 15 |
Warning 1101 BLOB, TEXT, GEOMETRY or JSON column 'longdesc' can't have a default value |
| 16 |
SET sql_mode = default; |
| 17 |
insert into test (url,shortdesc,longdesc,description,name) VALUES |
| 18 |
("http:/test.at", "kurz", "lang","desc", "name"); |
| 19 |
insert into test (url,shortdesc,longdesc,description,name) VALUES |
| 20 |
("http:/test.at", "kurz", "","desc", "name"); |
| 21 |
update test set url='test', description='ddd', name='nam' where gnr=2; |
| 22 |
update test set url='test', shortdesc='ggg', longdesc='mmm', |
| 23 |
description='ddd', name='nam' where gnr=2; |
| 24 |
check table test; |
| 25 |
Table Op Msg_type Msg_text |
| 26 |
test.test check status OK |
| 27 |
drop table test; |