Oracle common character function: Translate. the return value replaces each character in from with the corresponding character in to. If from is longer than to, it is more than to in from.
Oracle common character function: Translate. the return
REPLACE (source string, OLD string, NEW string) finds the searched old string from the source string and replaces it with the new string idlegt; selectreplace (
REPLACE (source string, OLD string, NEW string) finds the searched old string from the
Detailed description of C ++ string functions [go]
Reproduced from: http://zhanglong2004.spaces.live.com /? Owner = 1
Void * memset (void * DEST, int C, size_t count );Set count characters before DEST to C.
Returns the value of DeST.
Void * memmove (
Character TypeASCIICHRLOWERUPPERINITCAPCONCATSUBSTRLENGTHINSTRTRIMDumpLpadRpadREPLACE ASCII ('characters ')Returns the ASCII value of a character.Idle> select ASCII ('A') from dual;ASCII ('A ')----------97
Idle> select ASCII ('A') from dual;
ASCII ('
CopyCodeThe Code is as follows: public class encntest
{
Public static void main (string ARGs [])
{
Byte Buf [] = ARGs [0]. getbytes ();
Boolean halfchinese = false;
For (INT I = 0; I
{
If (halfchinese)
{
Byte ch [] = {Buf [I-1], Buf [I]};
none;text-autospace:none">"Times New Roman", "serif"; MSO-font-kerning: 0pt '> a w k "Times New Roman"; MSO-bidi-font-family: adobesongstd-light; MSO-font-kerning:0pt '> there are many powerful string functions, such as font-family: "Arial",
Copy Code code as follows:
Use Demo
Go
/*
Extract the value from the column string of the table code into the record table
The character type in String is
dsddddd,2222222,222221,3
The last one was labeled for Biaoji in the record table
/*------------------------------
Problem description:
Structure:
Test has two fields,
Col1 and col2 are both character fields,
The contents in the table are all three numbers separated by commas (,) and correspond to each other,
For example, the
The fputc function writes a character to a specified file. The function is called in the form of fputc (character quantity, file pointer, the number of characters to be written can be a character constant or variable, for example, fputc ('A', FP).
Oracle character FunctionsDescription: The input value of a character function is of the character type and the return value is of the character or number type. It can be used directly in an SQL statement or in a PL/SQL block.
1. ASCII (n)
Instance
Replace the character "world" (case-insensitive) in the string "Hello world!" with the words "Peter":
Definition and usage
The Str_ireplace () function replaces some characters in a string (case insensitive).
The function must adhere to
First, describe the problem:
Program: Transparentgif
Situation: The program interface can be displayed normally. However, when the file dialog box is opened and the file is selected, the system will die:
Lresult callback
Query the specified character functions in the array# Include Using namespace std;Bool find (int a [], int n, const int & sum, int & x, int & y){Int I = 0, j = n-1, csum;While (I {Csum = a [I] + a [j];If (csum = sum) {X = a [I];Y = a
Addslashes: String joins a slash.
Bin2Hex: binary turns into 16 decimal.
Chop: Remove continuous whitespace.
CHR: The character that returns the ordinal value.
Chunk_split: Divides the string into small segments.
Convert_cyr_string: Converts an old
There are several commonly used string functions in Oracle:1, Upper ()---Convert the contents of the string to uppercase, lower ()---all the contents of the string to lowercase . Specific usage:Select upper (' Test '), lower (' test ') from dual2,
Keywords: Oracle numeric function-type date conversion To_char automatic type conversion Date type numeric converter other function numeric functionABS: Find the absolute value function, such as: ABS (−5) 5SQRT: square root function, such as: sqrt (2
Character function
1.ASCII (x) and Chr (x)
ASCII (x): Returns the ASCII code for the character X
Chr (x): Returns a character with an ASCII code of X
2.concat (X,y)
Used to add Y to X after, with | | function as
3.initcap (x)
Converts the
The previous MFC project, the character set is based on multibyte, and now this project, unintentionally using the Unicode character set, in its process, there are many functions used differently than before. Of course, you can also modify the
4.3 single-line character function
Common Single-line character functions include the following:
█lower
█upper
█initcap
█concat
█substr
█length
█instr
█trin
█replac
Below, we introduce them separately by example.
LOWER(column name | expression):
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.