Oracle 5.0 Reference Manual page 810

Table of Contents

Advertisement

You may also use
CAST(character_string
Example:
SELECT CAST(_latin1'test' AS CHAR CHARACTER SET utf8);
If you use
CAST()
set and collation are defined by the
collation_connection
X, the resulting character set and collation are
You may not use a
may use it outside. For example,
COLLATE ...
SELECT CAST(_latin1'test' AS CHAR CHARACTER SET utf8) COLLATE utf8_bin;
10.1.9.3.
Statements and
SHOW
Several
SHOW
CHARACTER
COLUMNS. These statements are described here briefly. For more information, see
"SHOW
Syntax".
INFORMATION_SCHEMA
the
statements. For example, the
SHOW
the information displayed by
INFORMATION_SCHEMA
The
SHOW CHARACTER SET
[896]
LIKE
mysql>
SHOW CHARACTER SET LIKE 'latin%';
+---------+-----------------------------+-------------------+--------+
| Charset | Description
+---------+-----------------------------+-------------------+--------+
| latin1
| cp1252 West European
| latin2
| ISO 8859-2 Central European | latin2_general_ci |
| latin5
| ISO 8859-9 Turkish
| latin7
| ISO 8859-13 Baltic
+---------+-----------------------------+-------------------+--------+
The output from
[896]
LIKE
mysql>
SHOW COLLATION LIKE 'latin1%';
+-------------------+---------+----+---------+----------+---------+
| Collation
+-------------------+---------+----+---------+----------+---------+
| latin1_german1_ci | latin1
| latin1_swedish_ci | latin1
| latin1_danish_ci
| latin1_german2_ci | latin1
| latin1_bin
| latin1_general_ci | latin1
| latin1_general_cs | latin1
| latin1_spanish_ci | latin1
+-------------------+---------+----+---------+----------+---------+
SHOW CREATE DATABASE
mysql>
SHOW CREATE DATABASE test;
+----------+-----------------------------------------------------------------+
| Database | Create Database
Operations Affected by Character Set Support
[948]
to convert a string to a different character set. The syntax is:
CAST()
AS
character_data_type
[948]
without specifying
[443]
system variables. If you use
clause inside a
COLLATE
CAST(... COLLATE ...)
[948]
is legal:
INFORMATION_SCHEMA
statements provide additional character set information. These include
SET,
SHOW
COLLATION,
has several tables that contain information similar to that displayed by
SHOW CHARACTER SET
Tables.
statement shows all available character sets. It takes an optional
clause that indicates which character set names to match. For example:
SHOW COLLATION
clause that indicates which collation names to match. For example:
| Charset | Id | Default | Compiled | Sortlen |
|
|
| latin1
| 15 |
| 31 |
| latin1
| 47 |
| 48 |
| 49 |
| 94 |
displays the
CHARACTER SET charset_name)
SET, the resulting character
CHARACTER
character_set_connection
and the default collation of X.
X
[948]
CONVERT()
SHOW CREATE
DATABASE,
CHARACTER_SETS
and
| Default collation | Maxlen |
| latin1_swedish_ci |
| latin5_turkish_ci |
| latin7_general_ci |
includes all available character sets. It takes an optional
5 |
|
8 | Yes
| Yes
|
| Yes
| Yes
|
|
|
CREATE DATABASE
790
[442]
and
[948]
with
CAST()
or
[948]
CAST()
[948]
is illegal, but
SHOW CREATE TABLE
and
tables contain
COLLATIONS
COLLATION. See
SHOW
1 |
1 |
1 |
1 |
|
0 |
|
0 |
|
0 |
|
2 |
|
0 |
|
0 |
|
0 |
|
0 |
statement that creates a given database:
CHARACTER SET
call, but you
CAST(...)
SHOW
and
SHOW
Section 13.7.5,
Chapter 19,
|

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents