In the previous articleArticleIn the internal connection discussion, we used the self-connection to find out the names of all people and their superiors. However, there is a problem: King is the boss of the entire Organization and he has no
Create smallfile tablespace "newts" datafile 'd: \ app \ oracle \ oradata \ orcl11g \ newts01.dbf 'size 100 m autoextend on next 10 m maxsize 200 mlogging/* all operations on segments in the tablespace will generate redo content, which is the
Accidentally deleted the data files and log files of the database today. The following error was reported when the database was started:
ORA-01157: cannot identify/lock data file 15-see dbwr trace fileORA-01110: Data File 15:
Statement 1:
Select rownum, .*From (select T. brand_name, wm_concat (T. pd_type), wm_concat (T. brand_id)From base_brand tGroup by T. brand_name)
Statement 2:
Select 'insert into base_brand_info (brand_id, brand_name, brand_name_cn) values
Create or replace procedure pro_drop_comment is
Cursor c_table_column is
Select * From user_tab_columns;
Cursor c_table is
Select * From user_tables;
Cursor c_view is
Select * From user_views;
SQL _drop_comment string (100 );
Begin
The fastest and most practical way to create a user in Oracle:
Step 1
Select the SQL plus shortcut (E:/Documents and Settings/all users/Start Menu/Program/Oracle-orahome92/Application Development/SQL plus.
Use the system's Default User Name
Source: http://www.cnblogs.com/shengel/archive/2007/06/06/773559.html
Reason for posting: It is quite interesting, and there are many differences with SQL, so there is no specific test.
Use the DML insert statement in Oracle to insert data into
Common addition, deletion, and modification operations for creating data tables and data tables
1. Click "Start/Program/Oracle-orahome92/Application Development/SQL plus ";
2. In "user name [u]:" and "password [p]:" Enter the user name and password
The function dbms_job.submit can complete the scheduled tasks of oracle.
The format of dbms_job.submit is as follows:
Declare job1 number;
Begin
Dbms_job.submit (job => output variable, which is the number of the task in the task queue,
What =>
Select GRP, site, item, sum (plan_qty), sum (diff_qty)
From (
Select/* case
When substr (productid, 1, 1) = 'l' then
'Sesl'
When substr (productid, 1, 1) = 'M' then
'Lcm'
Else
Substr (productid, 1, 1)
End "GRP ",*/
Decode (substr (productid, 1, 1),
A Test Table V is created, which contains two columns: test1 and Test2. It is required that the two columns of data be interchangeable rows.
SQL> select * from V;
Test1 Test2--------------------20 2010 2020 1030 5050 3060 7070 80
20 20
SQL> select
There will inevitably be situations where random needs are needed at work. There are two main implementation methods:
Implemented by hard Coding
Implemented through the random functions provided by the database
This article mainly explains
Basic knowledge: Create Table test01 (Enno number (3), enname varchar (20), sex varchar (2), age Number (3) 1. index creation Syntax: create Index name on table name (column name 1, column name 2 ,.......) tablespace name; example: Create index
Permission management, menu management, general framework, Oracle database, ASP. NET, Oracle function, Oracle package
1. Table Creation
User permission series Table menu Log Series table
Spool ora_tables.logprompt permission classification table
Primary Key (PK ):The column name that uniquely identifies a record.
Foreign key (FK ):The foreign key refers to the primary key, which indicates a typeOne-to-multipleLink.
Intranet connections are divided into three types:
① Equijoin:The two tables
The temp table has 94 data records in the above structure.
Pagedemo. Java:
Public class pagedemo {public static void main (string [] ARGs) {consumer SC = new consumer (system. in); While (true) {int page = SC. nextint (); getresult (PAGE) ;}}
1. Set the Linux computer character set so that it is consistent with the Oracle database character set on the computer;
On the Linux command line interface,
Query the character set of an Oracle database:
Select * From nls_database_parameters t
1. Use v $ session and V $ locked_object to check who has locked the resource.
Select t1.sid, t1.serial #, t1.username, t1.logon _ time
From v $ session T1, V $ locked_object T2
Where t1.sid = t2.session _ id
Order by t1.logon _ time
More:
Select
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