Oracle 10g Oracle is designed for Grid computing, the G in 10g refers to the grid computing Oracle stores data in files, files that hold different information (data files, control files, log files) make up the physical structure of the database
--1. Character functions--upper (String|column) can turn characters into uppercaseSelect Upper (' Helloword ') from dual;Select Upper (ename) from EMP;--lower (String|column) converts the specified string to lowercaseSelect lower (' Helloword ')
One, character functionsThe character function is the most commonly used function in Oracle, so let's see what the character functions are:Lower (char): converts a string to a lowercase format.Upper (char): converts a string to an uppercase
Learning Oracle also for some time, found that the functions of Oracle many, for the background of the program ape, a lot of time to learn many other new things, and then remember these functions are not very realistic, so summed up some of Oracle's
① in SQL is not equal to using <>eg:select * from EMP where Deptno <>10;The ① fuzzy match keyword is like _ represents a character, and% represents 0 or more. Eg:select ename from emp where ename like ' _a% ';Escape characters in ②sql follow the '
One, character functionsCharacter functions accept character arguments, which can be columns in a table or a string expression.Commonly used character functions:
Function
Description
ASCII (X)
Returns the ASCII
Introduction:
Writing efficient and concise C language code is a goal that many software engineers pursue. This article on the work of some experience and experience to do the relevant elaboration, the wrong place please advise.
The 1th Recruit:
Examples of common methods for single-line functions are shown:--[1] character functions--Query the names of all employees in lowercase, uppercase, and uppercase letters--select ename from emp;--lower () lowercase upper () uppercase Initcap () first
One, character functions 1. Casing control function --lower: Make the letter lowercase----upper: Make the letter uppercase----INITCAP: Make the first letter of the character uppercase--select lower (' ABC '), Upper (' sql '), Initcap (' HeLlo
The SELECT statement in SQLSpool d:\ basic query. txt--spool recorded on the screen as a text file--Clear screenHost Clear (Linux)Host CLS (window)--Current userShow user--The table under the current userSELECT * from tab; (tab data dictionary,
a) Date function [focus on the first four date functions]1.add_months[return date plus (minus) The date after the specified month (before)Add_months (D1,N1)"Function": Returns the new date after the date D1, plus N1 months."Parameters": D1, Date
Character functions can be associated with Select,update,deleteRight ()----Select fromSELECT Right from tableLeft ()----Select fromSubstring_index----intercept Partial column values to find everything before the specified character or stringSELECT
--Character functions--1.ASCII returns the decimal number corresponding to the specified character;Select ASCII (' a ') a,ascii (' A ') a,ascii (' 0 ') zero,ascii (") space from dual;--2.CHR gives an integer, returning the corresponding
MySQL built-in functions:
Character functions
numeric functions
Time-Date function
Common use of numeric functions:1 Select avg from Tdb_goods; Find the average of field valuesBuilt-in summation functions:1 Select sum from
Common commands:Connection SqlplusCommand line to run CMD entry, such as logging in the SYS mode, the command is as follows:(1). Sqlplus "sys/zhb126 as SYSDBA"(2). Sqlplus/nolog Connect sys/zhb126 as Sysdba(3). Sqlplus Scott/tigerStart a DB
I. Oracle COMMON data typesOne, data definition language (DDL)Data definition language is used to alter the database structure, including creating, changing, and deleting database objects.The data definition language commands used to manipulate the
My mood: Today suddenly rain and sunny, a weekend and so to pass, always feel time is fast, whether it is work hours or after work time, total feeling time is not enough. Recently the blog is also less, some knowledge with simple words to describe
1 Find the character position function: Strpos ($str, $seach, [int]); Find the first position of search in $str starting with int; Stripos ($str, $seach, [int]); The function returns the position of the first occurrence of the string in another
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.