CONCAT_WS (',', 'First name', NULL, 'last name');-> 'first name, Last name'
CONCAT_WS () does not ignore any null strings. (However, all NULL values are ignored ).
◆ CONV (N, from_base, to_base)
Convert numbers between different bases. The return value is the N string of the number, which is converted from from_base to to_base base. If any parameter is NULL, the return value is NULL. The Independent Variable N is interpreted as an integer, but can be specified as an integer or string. The minim
consisting of space characters.
mysql> select SPACE(6); -> ' '
REPLACE(str,from_str,to_str)
Returns a string.
str, Its string
from_strAll appear by string
to_strReplacement.
mysql> select REPLACE('www.mysql.com', 'w', 'Ww'); -> 'WwWwWw.mysql.com'
This function is reliable for multiple bytes.
REPEAT(str,count)
Returns a duplicate
countTimes string
strA string. If
count Returns an empty string. If
strOr
countYes
NULL, Return
NULL.
m
.mysql.com'
This function is reliable for multiple bytes.
REPEAT (str, count)
Returns a string consisting of str strings that repeat countTimes. If count Mysql> select REPEAT ('mysql', 3 );
-> 'Mysqlmysqlmysqlmysql'
REVERSE (str)
Returns the str string in the reversed character order.
Mysql> select REVERSE ('ABC ');
-> 'CBA'
This function is reliable for multiple bytes.
INSERT (str, pos, len, newstr)
Returns the str string, which is the substring starting from the position pos and is replaced b
; select SOUNDEX ('hello ');
-> 'H400'
Mysql> select SOUNDEX ('quadratically ');
-> 'Q36324'
SPACE (N)
Returns a string consisting of N spaces.
Mysql> select SPACE (6 );
->''
REPLACE (str, from_str, to_str)
Returns the str string, which is replaced by the to_str character string.
Mysql> select REPLACE ('www .mysql.com ', 'w', 'ww ');
-> 'Wwwwww .mysql.com'
This function is reliable for multiple bytes.
REPEAT (str, count)
Returns a string consisting of str strings that repeat countTimes. If count
to be an integer, but can be specified as an integer or a string. The minimum cardinality is 2, and the maximum base is 36. If To_base is a negative number, then N is treated as a signed count. Otherwise, N is considered an unsigned number. The CONV () operates at a precision of 64 bits.
Mysql> Select CONV (' A ', 16,2);-> ' 1010 ' mysql> select CONV (' 6E ', 18,8);-> ' 172 ' mysql> select CONV ( -17,10,- ;-> '-h ' mysql> SELECT CONV (10+ ' + ' +0xa,10,10 ');-> ' 40 '
the string str of the reversed character order.Mysql> Select REVERSE (' abc ');-> ' CBA '
This function is reliable for multiple bytes.
INSERT (STR,POS,LEN,NEWSTR)Returns the string str, the substring at the beginning of the position Pos and the Len character long substring is replaced by the string newstr.Mysql> Select INSERT (' Quadratic ', 3, 4, ' What ');-> ' quwhattic '
This function is reliable for multiple bytes.
ELT (N,STR1,STR2,STR3,...)If n
; Select SOUNDEX (' Hello '); ' H400 ' Mysql> Select SOUNDEX (' quadratically '); ' Q36324 ' SPACE (N) Returns a string consisting of n space characters. Mysql> Select SPACE (6); "" REPLACE (STR,FROM_STR,TO_STR) Returns the string str, whose string from_str all occurrences are replaced by the string to_str. Mysql> Select REPLACE (' www.mysql.com ', ' w ', ' Ww '); ' WwWwWw.mysql.com ' This function is reliable for multiple bytes. REPEAT (Str,count) Returns a string consisting of the string str t
string. If
str or
count Yes
NULL , return
NULL .
Mysql> Select REPEAT (' MySQL ', 3); ' Mysqlmysqlmysql '
REVERSE(str)
Returns a string that reverses the order of characters
str .
Mysql> Select REVERSE (' abc '); ' CBA '
This function is reliable for multiple bytes.
INSERT(str,pos,len,newstr)
returns
str a string in which the substring at
pos the beginning
NULL , return
NULL .
Mysql> Select REPEAT (' MySQL ', 3); ' Mysqlmysqlmysql '
REVERSE(str)
Returns a string that reverses the order of characters
str .
Mysql> Select REVERSE (' abc '); ' CBA '
This function is reliable for multiple bytes.
INSERT(str,pos,len,newstr)
returns
str a string in which the substring at
pos the beginning of the position and
len character
assign the string to null. # # # ELT *elt (N,STR1,STR2,STR3,...) *
This function is a supplementary function of the field function, according to the value of N to select the nth string, such as sex in the data table is generally stored as a number, such as 1 for the male, 2 for the female, when we need to show the gender code according to sex, we can use the ELT
and Current is the total number of accessed logical buffers.
Run the following command: tkprof D: \ ORACLE \ PRODUCT \ 10.2.0 \ DB_1 \ RDBMS \ TRACE/wgods_ora_3940.trc h: \ out.txt outputfile explain = etl/etl
After running the preceding command, you can view the generated text file.
Copy codeThe Code is as follows:
TKPROF: Release 10.2.0.1.0-Production on Wednesday May 23 16:56:41 2012
Copyright (c) 1
\ aime_vista_ship \ oracle/workSYS DATA_FILE_DIR C: \ oracle \ product \ 10.2.0 \ db_1 \ demo \ schema \ sales_history \ SYS DATA_PUMP_DIR C: \ oracle \ product \ 10.2.0 \ admin \ zmmctest \ dpdump \ SYS ADMIN_DIR C: \ ADE \ aime_vista_ship \ oracle/md/adm In has selected 8 lines under drive C New Data Pump import export data directory and log directory etl, etl_log and then use PL/SQL in the Database Registration just created Data Pump import export
Analysis Services[sql Server Analytics service], Ssrs:sql server Reporting services[sql Server Reporting Services]) and a tool (SQL Server Management Studio) to consolidate data warehousing systems, providing users with the features, tools, and capabilities they need to build typical and innovative analytic applications that enable modeling, ETL, query analysis or charting, custom KPIs (Key performance Indicator key performance indicators), set up re
Configuring spooling dir for file filteringIntroduction to configuring the fan-in architecture in 17.FlumeTest implementations for configuring the fan-in architecture in 18.FlumeImplementation of configuration fan-out architecture in 19.FlumeIntroduction and compilation of Taildir in 20.FlumeTaildir configuration and test use in 21.Flume3rd: Big Data offline Project: Nginx+flume Realization Data acquisition22. Introduction to the technical structure of the project23. Project Technical Structure
strings. (However, all NULL values are ignored ).
CONV (N, from_base, to_base)Convert numbers between different bases. The return value is the N string of the number, which is converted from from_base to to_base base. If any parameter is NULL, the return value is NULL. The Independent Variable N is interpreted as an integer, but can be specified as an integer or string. The minimum base is 2, and the maximum base is 36. If to_base is a negative number, N is considered as a signed number. Otherw
. The return value is the N string of the number, which is converted from from_base to to_base base. If any parameter is NULL, the return value is NULL. The Independent Variable N is interpreted as an integer, but can be specified as an integer or string. The minimum base is 2, and the maximum base is 36. If to_base is a negative number, N is considered as a signed number. Otherwise, N is considered as the unsigned number. The CONV () operation precision is 64 bits.
Mysql> select conv ('A', 101
an empty string. If
strOr
countYes
NULL, Return
NULL.
mysql> select REPEAT('MySQL', 3); -> 'MySQLMySQLMySQL'
REVERSE(str)
Returns a string in the reversed character order.
str.
mysql> select REVERSE('abc'); -> 'cba'
This function is reliable for multiple bytes.
INSERT(str,pos,len,newstr)
Returns a string.
str, In the location
posAnd
lenCharacter long substring by string
newstr.
mysql> select INSERT('Quadratic', 3, 4, 'What');
function is reliable for multiple bytes.
ELT(N,str1,str2,str3,...)
If
N=
1, Return
str1, Such as fruit
N=
2, Return
str2And so on. If
NLess
1Or greater than the number of parameters, return
NULL.
ELT()Yes
FIELD()Inverse Operation.
mysql> select ELT(1, 'ej', 'Heja', 'hej', 'foo'); -> 'ej'mysql> select
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.