<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=Oracle_PL%2FSQL_Tutorial%2FCharacter_String_Functions%2FIntroduction</id>
		<title>Oracle PL/SQL Tutorial/Character String Functions/Introduction - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=Oracle_PL%2FSQL_Tutorial%2FCharacter_String_Functions%2FIntroduction"/>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Character_String_Functions/Introduction&amp;action=history"/>
		<updated>2026-04-06T02:20:37Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Character_String_Functions/Introduction&amp;diff=4352&amp;oldid=prev</id>
		<title> в 13:45, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Character_String_Functions/Introduction&amp;diff=4352&amp;oldid=prev"/>
				<updated>2010-05-26T13:45:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:45, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Character_String_Functions/Introduction&amp;diff=4353&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Character_String_Functions/Introduction&amp;diff=4353&amp;oldid=prev"/>
				<updated>2010-05-26T10:11:34Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Character Functions==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Character Functions accept character input.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The input may come from a column in a table or from any expression.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Character Functions List&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;OL&amp;gt;&amp;lt;LI&amp;gt;ASCII(x) returns the ASCII value of the character x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;CHR(x) returns the character with the ASCII value of x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;CONCAT(x, y) concatenates y to x and return the appended string.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;INITCAP(x) converts the initial letter of each word in x to uppercase and returns that string.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;INSTR(x, find_string [, start] [, occurrence]) searches for find_string in x and returns the position at which find_string occurs.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;INSTRB(x) returns the location of a string within another string, but returns the value in bytes for a single-byte character system.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;LENGTH(x) returns the number of characters in x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;LENGTHB(x) returns the length of a character string in bytes, except that the return value is in bytes for single-byte character sets.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;LOWER(x) converts the letters in x to lowercase and returns that string.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;LPAD(x, width [, pad_string]) pads x with spaces to left, to bring the total length of the string up to width characters.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;LTRIM(x [, trim_string]) trims characters from the left of x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NANVL(x, value) returns value if x matches the NaN special value (not a number), otherwise x is returned.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NLS_INITCAP(x) Same as the INITCAP function except that it can use a different sort method as specified by NLSSORT.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NLS_LOWER(x) Same as the LOWER function except that it can use a different sort method as specified by NLSSORT.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NLS_UPPER(x) Same as the UPPER function except that it can use a different sort method as specified by NLSSORT.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NLSSORT(x) Changes the method of sorting the characters. Must be specified before any NLS function; otherwise, the default sort will be used.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NVL(x, value) returns value if x is null; otherwise, x is returned.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;NVL2(x, value1, value2) returns value1 if x is not null; if x is null, value2 is returned.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;REPLACE(x, search_string, replace_string) searches x for search_string and replaces it with replace_string.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;RPAD(x, width [, pad_string]) pads x to the right.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;RTRIM(x [, trim_string]) trims x from the right.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;SOUNDEX(x) returns a string containing the phonetic representation of x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;SUBSTR(x, start [, length]) returns a substring of x that begins at the position specified by start. An optional length for the substring may be supplied.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;SUBSTRB(x) Same as SUBSTR except the parameters are expressed in bytes instead of characters to handle single-byte character systems.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;TRIM([trim_char FROM) x) trims characters from the left and right of x.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;UPPER(x) converts the letters in x to uppercase and returns that string.&amp;lt;/LI&amp;gt;&amp;lt;/OL&amp;gt;&lt;br /&gt;
11. 1. Introduction&lt;br /&gt;
11. 1. 1. &lt;br /&gt;
Character Functions&lt;br /&gt;
11. 1. 2. &lt;br /&gt;
&amp;lt;A href=&amp;quot;/Tutorial/Oracle/0220__Character-String-Functions/CombiningFunctions.htm&amp;quot;&amp;gt;Combining Functions&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Combining Functions==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You can use any valid combination of functions in a SQL statement.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following example combines the UPPER() and SUBSTR() functions;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The output from SUBSTR() is passed to UPPER().&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; -- create demo table&lt;br /&gt;
SQL&amp;gt; create table Employee(&lt;br /&gt;
  2    ID                 VARCHAR2(4 BYTE)         NOT NULL,&lt;br /&gt;
  3    First_Name         VARCHAR2(10 BYTE),&lt;br /&gt;
  4    Last_Name          VARCHAR2(10 BYTE),&lt;br /&gt;
  5    Start_Date         DATE,&lt;br /&gt;
  6    End_Date           DATE,&lt;br /&gt;
  7    Salary             Number(8,2),&lt;br /&gt;
  8    City               VARCHAR2(10 BYTE),&lt;br /&gt;
  9    Description        VARCHAR2(15 BYTE)&lt;br /&gt;
 10  )&lt;br /&gt;
 11  /&lt;br /&gt;
Table created.&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; -- prepare data&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)&lt;br /&gt;
  2               values (&amp;quot;01&amp;quot;,&amp;quot;Jason&amp;quot;,    &amp;quot;Martin&amp;quot;,  to_date(&amp;quot;19960725&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;20060725&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 1234.56, &amp;quot;Toronto&amp;quot;,  &amp;quot;Programmer&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)&lt;br /&gt;
  2                values(&amp;quot;02&amp;quot;,&amp;quot;Alison&amp;quot;,   &amp;quot;Mathews&amp;quot;, to_date(&amp;quot;19760321&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19860221&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 6661.78, &amp;quot;Vancouver&amp;quot;,&amp;quot;Tester&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)&lt;br /&gt;
  2                values(&amp;quot;03&amp;quot;,&amp;quot;James&amp;quot;,    &amp;quot;Smith&amp;quot;,   to_date(&amp;quot;19781212&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19900315&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 6544.78, &amp;quot;Vancouver&amp;quot;,&amp;quot;Tester&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)&lt;br /&gt;
  2                values(&amp;quot;04&amp;quot;,&amp;quot;Celia&amp;quot;,    &amp;quot;Rice&amp;quot;,    to_date(&amp;quot;19821024&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19990421&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 2344.78, &amp;quot;Vancouver&amp;quot;,&amp;quot;Manager&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)&lt;br /&gt;
  2                values(&amp;quot;05&amp;quot;,&amp;quot;Robert&amp;quot;,   &amp;quot;Black&amp;quot;,   to_date(&amp;quot;19840115&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19980808&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 2334.78, &amp;quot;Vancouver&amp;quot;,&amp;quot;Tester&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)&lt;br /&gt;
  2                values(&amp;quot;06&amp;quot;,&amp;quot;Linda&amp;quot;,    &amp;quot;Green&amp;quot;,   to_date(&amp;quot;19870730&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19960104&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 4322.78,&amp;quot;New York&amp;quot;,  &amp;quot;Tester&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)&lt;br /&gt;
  2                values(&amp;quot;07&amp;quot;,&amp;quot;David&amp;quot;,    &amp;quot;Larry&amp;quot;,   to_date(&amp;quot;19901231&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;19980212&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 7897.78,&amp;quot;New York&amp;quot;,  &amp;quot;Manager&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt; insert into Employee(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)&lt;br /&gt;
  2                values(&amp;quot;08&amp;quot;,&amp;quot;James&amp;quot;,    &amp;quot;Cat&amp;quot;,     to_date(&amp;quot;19960917&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), to_date(&amp;quot;20020415&amp;quot;,&amp;quot;YYYYMMDD&amp;quot;), 1232.78,&amp;quot;Vancouver&amp;quot;, &amp;quot;Tester&amp;quot;)&lt;br /&gt;
  3  /&lt;br /&gt;
1 row created.&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; -- display data in the table&lt;br /&gt;
SQL&amp;gt; select * from Employee&lt;br /&gt;
  2  /&lt;br /&gt;
ID   FIRST_NAME LAST_NAME  START_DAT END_DATE      SALARY CITY       DESCRIPTION&lt;br /&gt;
---- ---------- ---------- --------- --------- ---------- ---------- ---------------&lt;br /&gt;
01   Jason      Martin     25-JUL-96 25-JUL-06    1234.56 Toronto    Programmer&lt;br /&gt;
02   Alison     Mathews    21-MAR-76 21-FEB-86    6661.78 Vancouver  Tester&lt;br /&gt;
03   James      Smith      12-DEC-78 15-MAR-90    6544.78 Vancouver  Tester&lt;br /&gt;
04   Celia      Rice       24-OCT-82 21-APR-99    2344.78 Vancouver  Manager&lt;br /&gt;
05   Robert     Black      15-JAN-84 08-AUG-98    2334.78 Vancouver  Tester&lt;br /&gt;
06   Linda      Green      30-JUL-87 04-JAN-96    4322.78 New York   Tester&lt;br /&gt;
07   David      Larry      31-DEC-90 12-FEB-98    7897.78 New York   Manager&lt;br /&gt;
08   James      Cat        17-SEP-96 15-APR-02    1232.78 Vancouver  Tester&lt;br /&gt;
8 rows selected.&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; SELECT first_name, UPPER(SUBSTR(first_name, 2, 2)) FROM employee;&lt;br /&gt;
FIRST_NAME UP&lt;br /&gt;
---------- --&lt;br /&gt;
Jason      AS&lt;br /&gt;
Alison     LI&lt;br /&gt;
James      AM&lt;br /&gt;
Celia      EL&lt;br /&gt;
Robert     OB&lt;br /&gt;
Linda      IN&lt;br /&gt;
David      AV&lt;br /&gt;
James      AM&lt;br /&gt;
8 rows selected.&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; -- clean the table&lt;br /&gt;
SQL&amp;gt; drop table Employee&lt;br /&gt;
  2  /&lt;br /&gt;
Table dropped.&lt;br /&gt;
SQL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>