In the process, especially the tasks performed daily, usually to check that the query's data table exists, if it does not exist and wait for a period of time to execute, the following code implements this function, if the table does not exist, throw
DefinedSet SERVEROUTPU on is an output method that enables Oracle to use its ownDbms_output.put_line (' XX ');Scope of Useused in PL/SQL COMMAND window,sql PlusPermanently validIn order to not need to enter set Serveroutput on each time you can
Modifying the Oracle Character setMethod/Step
Character set changes for Oracle databasesA, Oracle server-side Character set querySelect Userenv (' language ') from dualWhere Nls_characterset is the server-side character setNls_language for
VBA Connection Oracle needs to add references:After that, the connection string is: Provider = msdaora.1; password=******; User Id=xxxxxxx;data source=dbid; Persist Security Info=trueThen use the standard package of ADO, 1, use ado.connection, open
1. Use arithmetic expressions to perform operations on the data during queryThe student table structure is as follows:The last salary represents each person's monthly salary, I now want to inquire each person's annual salary:2. Use the NVL function
1. Previous section Review2. Maintaining the integrity of the data3. Managing Indexes4. Managing Permissions and Roles1. Mastering the skills to maintain Oracle data integrity2. Understanding the concept of indexing, indexing is established3.
--Refer:--http://www.cnblogs.com/gnielee/archive/2009/09/09/1563154.html--http://www.cnblogs.com/yudy/archive/2012/07/18/2597874.htmlCREATE OR REPLACETYPE Ty_str_split is TABLE of VARCHAR2(4000);CREATE OR REPLACE FUNCTIONSplitstr (p_stringinch
Feature Description:The first is a non-field aggregation , which is then aggregated after the fields are grouped from left to rightTo create a table:1 Create Table score 2 (3 Int , 4 Varchar2 (), 5 varchar2 (), 6 Int 7 );View CodeInsert test
Subquery: Includes another query within one query.Normal subquery--Find out information about all employees who are higher than 7654 salary SELECT * from emp e where e.sal > (select Sal from emp where empno = 7654);--query out the wage ratio of 7654
--1. View the name and size of the table spaceSELECTT.tablespace_name,round(SUM(bytes/(1024x768 * 1024x768)),0) Ts_size fromdba_tablespaces T, dba_data_files DWHERET.tablespace_name=D.tablespace_nameGROUP byT.tablespace_name;--2. View the table
After successfully installing the Oracle 11g database, you will find that your computer is running slower, that your computer is running faster with a lower-profile PC or even a very card-enabled Oracle service. So, how do you do it
New Feature of oracle11g -- AdaptiveCursorSharing (ACS)
1. ACS Overview
Oracle Database 11g provides the Adaptive Cursor Sharing (ACS) function to overcome the possibility of Sharing a Cursor that should not be shared in the past. ACS uses two new
Getting started with oracle Database Data Query
1. perform operations on data using arithmetic expressions during the Query ProcessThe student table structure is as follows:The last salary represents the monthly salary of each person. Now I want to
Oracle user management
1. Create a new user (normal)Create user Username identified by passwordFor example, create a user named James with the password xm2. Change the password of an ordinary user as an administrator (when a common user forgets his/
Modify logon authentication mode in oracle
By configuring the sqlnet. ora file, we can modify the oracle login authentication method.SQLNET. AUTHENTICATION_SERVICES = (CNT); operating system-based authenticationSQLNET. AUTHENTICATION_SERVICES =
How do Oracle beginners know common data tables such as EMP, DEPT, and SALGRADE? Graphic operation
Oracle Database beginners often mention several common database tables in some books, such as EMP, DEPT, and SALGRADE. Where are these tables
The fifth day of oracle LearningZookeeper
1. Review in the previous section2. maintain data integrity3. Manage Indexes4. manage permissions and Roles
1. Skills in maintaining oracle Data Integrity2. Understand the index concept and create an index3.
Oracle Developer code
The following are quotations from Oracle:
Oracle Database developers shocould follow is to do everything they can in SQL. what they cannot do in SQL, they shoshould do in PL/SQL. and what they cannot do in PL/SQL, they
ORACLE user name change
Oracle user passwords have been frequently modified before, but few user names have been modified.
In the past, only one user 1 can be created, user 2 data can be imported to user 1, and deleted by user 1. This is very
[SQL entry level] First day of SQL preliminary, first day of SQL entry level
SQL statements are categorized into the following types:
DML: Data Manipulation Language
DDL: Data Definition Language
DCL: Data Control Language
1. Basic
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