SQL isnull (oracle, mysql tutorial, mssql)
IsnullReplace null with the specified replacement value.
SyntaxIsnull (check_expression, replacement_value)
ParametersCheck_expression
Whether the expression is null is checked. Check_expression can be of any type.
Replacement_value
The expression returned when check_expression is null. Replacement_value must be the same
Check_expresssion has the same type.
Return
1. Log in to PL/SQL DeveloperThis omits the installation steps for the Oracle database and PL/SQL Developer, and note that when you install the PL/SQL Developer software, do not install it under the program Files (x86) directory or you cannot start PL/SQL Developer.Wonder wh
"ora-01555:snapshot too old", if this problem, I will start from the point of view of the system design, why there is such a large query, Why the other transactions in this query will update the data, whether the query is just a check is enough, check the process needs to lock the table and so on. However, this problem can be solved by database tuning, but I think the point of view of the problem is to start from its own system design.
Second, you s
Part I: Profile concept
Oracle database 10g uses a new approach called SQL configuration files to compensate for the drawbacks of storage profiles,
DBAs can use SQL Tuning Advisor (STA) or SQL Access Advisor (SAA) to identify SQL
archived redo logs are transmitted or submitted to a remote server, then the primary database is obviously in archive mode, and those files are generated. Running in this mode allows for a small amount of data loss, because recovery can be performed at any point before a failure, regardless of the type of failure. This is similar in MSSQL, but there are three states to choose from.
SQL Server Books Online
Tags: oracle plsql performance Language SQLThese days to see the Oracle PL/SQL Real-combat this book, out of the study of the performance of the statement, the downstream standard on the impact of the code.1. Progressive processing The program declares a cursor c1, and then implicitly opens the cursor with a cursor for loop, the program queries the Customers tab
: Network Disk DownloadContent IntroductionEditing the volume of information contained in this book can improve your programming skills to a new level. You'll learn how to write dynamic PL/SQL programs and Oracle database interfaces, perform complex computations, and use advanced techniques to control error conditions. In addition, you will receive up-to-date information on Pl/sqltoolkit,java integration an
| | ' Publishing house is ' | | V_pubhouse); End Loop; Dbms_output.put_line (' Total record is: ' | | v_myrows| | ' Article '); sql> exec Fenyeceshi (' books ', 2,2); The book ID is: 3 the name is: Angle publishing house is 20 book ID is: 4 name is: Anglele publishing House is 10 Total records: 4 Total Pages: 2 pages ?? : This will get the result, but the main process is very confused about w
statement by filtering out unwanted records before group by. The following two queries return the same result but the second one is obviously much faster.
Low efficiency:
SELECT JOB, AVG (SAL)
From EMP
GROUP JOB
Having JOB = ' PRESIDENT '
OR JOB = ' MANAGER '
Efficient:
SELECT JOB, AVG (SAL)
From EMP
WHERE JOB = ' PRESIDENT '
OR JOB = ' MANAGER '
GROUP JOB
Translator by:
This section and section 14 are the same. can skip over.
50. Date of Use
When using the date is, be awa
The Oracle tutorial you are looking at is: Oracle SQL Performance Tuning Series learning three. 8. Use the Decode function to reduce processing time
Use the Decode function to avoid repeatedly scanning the same record or repeating the same table.
For example:
SELECT COUNT (*), SUM (SAL) from EMP
WHERE dept_no = 0020
SQL IsNull (oracle,mysql tutorial, MSSQL)
IsNullReplaces null with the specified replacement value.
GrammarIsNull (Check_expression, Replacement_value)
ParametersCheck_expression
An expression that will be checked for null. Check_expression can be of any type.
Replacement_value
An expression to be returned when check_expression is null. Replacement_value must be with
Check_expresssion has the same ty
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.