Oracle 5.0 Reference Manual page 912

Table of Contents

Advertisement

+ (2nd byte code * 256)
+ (3rd byte code * 256
If the leftmost character is not a multi-byte character,
[886]
function.
ASCII()
mysql>
SELECT ORD('2');
-> 50
POSITION(substr IN str)
POSITION(substr IN str)
[892]
QUOTE(str)
Quotes a string to produce a result that can be used as a properly escaped data value in an SQL
statement. The string is returned enclosed by single quotation marks and with each instance of
backslash ("\"), single quote ("'"), ASCII NUL, and Control+Z preceded by a backslash. If the
argument is NULL, the return value is the word "NULL" without enclosing single quotation marks.
mysql>
SELECT QUOTE('Don\'t!');
-> 'Don\'t!'
mysql>
SELECT QUOTE(NULL);
-> NULL
For comparison, see the quoting rules for literal strings and within the C API in
Literals", and
Section 20.6.6.53,
REPEAT(str,count)
Returns a string consisting of the string
an empty string. Returns
mysql>
SELECT REPEAT('MySQL', 3);
-> 'MySQLMySQLMySQL'
REPLACE(str,from_str,to_str)
Returns the string
str
[892]
performs a case-sensitive match when searching for from_str.
REPLACE()
mysql>
SELECT REPLACE('www.mysql.com', 'w', 'Ww');
-> 'WwWwWw.mysql.com'
This function is multi-byte safe.
[892]
REVERSE(str)
Returns the string
str
mysql>
SELECT REVERSE('abc');
-> 'cba'
This function is multi-byte safe.
RIGHT(str,len)
Returns the rightmost
mysql>
SELECT RIGHT('foobarbar', 4);
-> 'rbar'
This function is multi-byte safe.
RPAD(str,len,padstr)
String Functions
2
) ...
[892]
[892]
is a synonym for
"mysql_real_escape_string()".
[892]
str
if
or
NULL
str
count
[892]
with all occurrences of the string
with the order of the characters reversed.
[892]
characters from the string str, or
len
[892]
892
[891]
returns the same value as the
ORD()
LOCATE(substr,str)
repeated
times. If
count
are NULL.
from_str
NULL
[890].
Section 9.1.1, "String
is less than 1, returns
count
replaced by the string to_str.
if any argument is NULL.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents