Functions in an Oracle database
A: Table name, B: The name of the field to be modified
Update A Set B = replace (b, ' null ', ' 0 ') where id = ' 5644 ';
The execution effect is as follows:
The use of Decode functions
The function is--the time of
Select sequence name. Currval from dual; Gets the current value of the sequence, which is variable.
It is to be noted that:
After a successful database connection, the first execution of this sentence, will report an exception, can not be used.
Definition:
A stored procedure (Stored Procedure) is a set of SQL statements that are compiled and stored in a database in order to complete a specific function. The user specifies the name of the stored procedure and gives the parameter, if the
Recently followed puppet together again Oracle9i 9.2.0.1, although previously learned from the DBA's point of view to study every problem, but after all, not enough cow fork we will find that the entire Oracle system architecture is not what we can,
Oracle Automatic Backup detailed steps
Background: Oracle 10g Server, Oracle 10g client, Windows XP operating platform
Requirements: The Oracle database server automatically backs up the database YTCN once a day.
Solution: Automatically generate
One, user's creation, deletion, modification:Create userSyntax: Create user username identified by password,Note: Only Administrators or people with administrator privileges in Oracle can create and modify. The newly created user does not have any
The problem that this paper solves
Does using index in Oracle make it faster to find?
Differences between the B+tree and bitmap indexes
How the Index Works
1 Basic concepts of indexingAn index is a database structure that
In Oracle learning, the focus is on the learning of SQL statements, and all SQL statements are done under the Scott user.It is necessary to familiarize yourself with the four tables under this user.View all table names:SELECT * FROM tab;To view the
I. Oracle functional dependency and Paradigm theory 1. Function dependency1) Non-trivial dependencies: in the Relationship R (U), for subsets X and Y of U, if X->y,y does not belong to a subset of X, it is called X->y is a non-trivial dependency.2)
At work, it is found that Oracle does not provide a string cutting function, find a better way to cut on the internet, record:1. New data typeCREATE OR REPLACE TYPE str_split as TABLE of VARCHAR2 (500);2. New Cut functionCREATE OR REPLACE
WINDOWS10 Remote Desktop Connection error message:Find the method on the internet but what is "WIN10 family" cannot use this method, the specific operation can see the last reference link!!!!Workaround:Run Gpedit.mscLocal Group Policy:Computer
At the request of a friend, write a stored procedure description, this article is relatively simple, suitable for new contact with the stored procedures of the classmateLet's start with a simple one.begin dbms_output.put_line ('my first execute');
Don't say much, just go dry.1, query the current user to create the following table statementSelect Dbms_metadata.get_ddl (' TABLE ', ' ux_future ') from dual;2, query other users to create the following table statementSelect Dbms_metadata.get_ddl ('
When I first learned to create TABLE, I didn't notice it. You can specify a default value after learning. Then wrote the following statement: When I checked, I found out that the results were like this.I am wondering if there is, I clearly specify
Oracle 10g is slowly exiting, but there are also places to use. Let's take a look at the case here:Database 16:58 A large number of 4031, causing the database to be unusable, take the corresponding time of the AWRFound that the shared_pool has been
SQL> select to_char (to_date ('201312', 'yyyymmdd') + interval '1' month, 'yyyymmdd') from dual;
Select to_char (to_date ('20140901', 'yyyymmdd') + interval '1' month, 'yyyymmdd') from dual
ORA-01839: The date of the specified month is invalid
There are two ways to connect to Oracle in Java:
OCI mode and thin mode. The OCI method depends on the local dynamic link library. This method can be used if the Oracle database client is installed locally. The thin method is a Java-only database
On the first day of work, connect to the database of the Company project.
Environment: oracle11g win7x64
I. Find the installation directory. my options are app/Administrator/product/11.1.0/db_1/Network/admin. Open tnsnames. ora.
2. Copy orcl
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service