We may see this situation where a table is not fully designed, leading to duplicate data in the table. How can we delete duplicate data?Duplicate data may be in the following two cases. In the first case, only some fields in the table are the same,
Query
The SELECT statement is used to query data from the database. When the SELECT statement is used in PL/SQL, it must be used with the into clause. The return value of the query is assigned to the variable in the into clause, variable
Client object browser8 link to win server 2012 server Oracle 11g error 01017:The solution may be as follows:Win + run -------> cmd ------->? Run the following command:1. sqlplus/assysdba2. sqlplus-Alter system set sec_case_sensitive_logon = false
Create user cmsuser identified by "cmsuser ";
SQL> create user uumcuser identified by "password ";
User Created.
SQL> grant connect, DBA to uumcuser;
Grant succeeded.
SQL> grant exp_full_database, imp_full_database, resource, create any
Requirement. After one operation (Review operation), insert the two fields in Table A that meet the conditions into Table B in batches. When inserting these two fields, you also need to use a function to automatically generate an ID and a fixed
We use the PL/SQL client. If the correspondingProgram. We can configure tool -- prefrence -- oraclehome
Configure the listener
Orcl =(Description =(Address_list =(Address = (Protocol = TCP) (host = 128.0.0.47) (Port = 1521 )))(CONNECT_DATA
My machine is 5l, Oracle9i, weblogic6.1, httpserverThe level of the other party is limited because of the machines installed for others (I am also very good at cooking). In order to worry about it, it is better to let the system automatically run
Today, my colleague asked me a question about how to determine which tables have specified columns in Oracle.
After trying, the following SQL statements can be queried.
Select table_nameFrom user_tab_columnsWhere column_name = 'id'
Lists all
DML statement results
After a DML statement is executed, the results of the DML statement are stored in four cursor attributes, which are used to control the program flow or understand the program status. When running a DML statement, PL/SQL opens a
Record variable
Define a record variable using the type command and % rowtype. For more information about % rowstype, see related materials. Record variables are used to extract data rows from the cursor. When multiple columns are selected for the
Use query in a cursor For Loop
You can define a query in a cursor for loop. Because no explicit declaration is made, the cursor has no name, and the record name is defined through the cursor query.
Decalre
V_tot_salary EMP. Salary % type;
Begin
For
SQL> select tablespace_name, file_id, Bytes/1024/1024, file_name from dba_data_files order by file_id;6. display the current connected user---------------------SQL> show user7. Use SQL * Plus as a calculator----------------------SQL> select 100*20
I. Data Control Statement (DML)
1. insert (insert the record statement into the data table)
Insert into Table Name (field name 1, field name 2 ,......) Values (value 1, value 2 ,......);Insert into Table Name (field name 1, field name 2 ,......)
We know the minimum parameter requirements for creating an oracle instance. During Oracle startup, you need to read the parameter file (pfile/spfile) to create an instance. during Oracle startup, the order of search for parameter files is spfile.
Symptoms: When Oracle 10g is installed, the network detection fails. If no processing is performed, the installation continues and the IP address is not specified. After iporacledbconsole is modified for the machine, it cannot be started, view the
1. I was so scared to death that I accidentally deleted all the database tables in the development database. The result shows that the following statement is restored to data 1 hour ago! Very simple.
Note: Use the Administrator to log on to the
Recently, we need to reschedule the partitions of a large partition table. After reading the online materials, I found there are three methods.1. alter table table_name split PartitionAlter table table_name split partition seems to have a bug in my 1
Today, we found that the SELECT statement in Oracle can implement recursive queries using the start with... connect by prior clause. The connect by clause is used in structured queries. Its basic syntax is:
Select... from tablename start with
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