2000-12-28 02:56:38 +01:00
|
|
|
#
|
|
|
|
# system functions
|
|
|
|
#
|
|
|
|
|
2003-05-23 07:55:49 +02:00
|
|
|
select database();
|
|
|
|
select charset(database());
|
|
|
|
select database() = "test";
|
|
|
|
select database() = _utf8"test";
|
|
|
|
select database() = _latin1"test";
|
|
|
|
|
|
|
|
select user() like "%@%";
|
|
|
|
select user() like _utf8"%@%";
|
|
|
|
select user() like _latin1"%@%";
|
|
|
|
select charset(user());
|
|
|
|
|
|
|
|
select version()>="3.23.29";
|
2003-03-19 16:13:28 +01:00
|
|
|
select version()>=_utf8"3.23.29";
|
2003-05-23 07:55:49 +02:00
|
|
|
select version()>=_latin1"3.23.29";
|
|
|
|
select charset(version());
|
2003-10-30 11:57:26 +01:00
|
|
|
explain extended select database(), user();
|
2003-05-23 07:55:49 +02:00
|
|
|
|
2003-06-04 17:28:51 +02:00
|
|
|
create table t1 (version char(40)) select database(), user(), version() as 'version';
|
2003-05-23 07:55:49 +02:00
|
|
|
show create table t1;
|
|
|
|
drop table t1;
|
|
|
|
|
2002-11-21 01:07:14 +01:00
|
|
|
select TRUE,FALSE,NULL;
|