ctype_cp1250_ch.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:
MySQL数据库
开发平台:
Visual C++
- SHOW COLLATION LIKE 'cp1250_czech_cs';
- Collation Charset Id Default Compiled Sortlen
- cp1250_czech_cs cp1250 34 Yes 2
- CREATE TABLE t1 (a char(16)) character set cp1250 collate cp1250_czech_cs;
- INSERT INTO t1 VALUES ('');
- SELECT a, length(a), a='', a=' ', a=' ' FROM t1;
- a length(a) a='' a=' ' a=' '
- 0 1 1 1
- DROP TABLE t1;
- CREATE TABLE t1 (
- popisek varchar(30) collate cp1250_general_ci NOT NULL default '',
- PRIMARY KEY (`popisek`)
- );
- INSERT INTO t1 VALUES ('2005-01-1');
- SELECT * FROM t1 WHERE popisek = '2005-01-1';
- popisek
- 2005-01-1
- SELECT * FROM t1 WHERE popisek LIKE '2005-01-1';
- popisek
- 2005-01-1
- drop table t1;
- set names cp1250;
- CREATE TABLE t1
- (
- id INT AUTO_INCREMENT PRIMARY KEY,
- str VARCHAR(32) CHARACTER SET cp1250 COLLATE cp1250_czech_cs NOT NULL default '',
- UNIQUE KEY (str)
- );
- INSERT INTO t1 VALUES (NULL, 'a');
- INSERT INTO t1 VALUES (NULL, 'aa');
- INSERT INTO t1 VALUES (NULL, 'aaa');
- INSERT INTO t1 VALUES (NULL, 'aaaa');
- INSERT INTO t1 VALUES (NULL, 'aaaaa');
- INSERT INTO t1 VALUES (NULL, 'aaaaaa');
- INSERT INTO t1 VALUES (NULL, 'aaaaaaa');
- select * from t1 where str like 'aa%';
- id str
- 2 aa
- 3 aaa
- 4 aaaa
- 5 aaaaa
- 6 aaaaaa
- 7 aaaaaaa
- drop table t1;