where to_char (start_time,'YYYYMMDD') >='20170101' and To_char (start_time,'YYYYMMDD') '20170601' ) SELECT COUNT (*) from Temp_bus_travel_infoThe date filter range inserts the results of the query directly into the new table. and then delete.INSERT
1. Exporting DMP PartsCommand: Exp qgtg/\ "[Email protected]\" File=/usr/fuck.dmpExp qgtg/\ "[email protected]\" File=/usr/fuck.dmp full=y, more than a full=y, pop-up dialogue output YesThe export user name is QGTG, and the password is QGTG,SID for
Blogger tested on Oracle 11g R2 (test date: 2017.10.30):Log in to Oracle with SYS and execute the following two statements: Select * from WHERE like ' CONNECT '; -- Querying permissions for the Connect role Select * from WHERE
drop tableExecute DROP TABLE XX statementThe drop table is placed in the Recycle Bin (user_recyclebin) instead of being deleted directly. In this way, the table information in the Recycle Bin can be restored or completely erased.Retrieve the deleted
How Oracle Exports and imports database tablesOracle how to export the table in the project after the import of its own database, this is a complete operation, for database backup or to view data validation data on-premises to use, generally I use
To investigate the failure of Oracle, you can set up an event to learn more about the situation. Here's how:If you use SPFILE,=============To enable it:1. Check The current event setting status:Sql> show parameter event;2. Add an event and set it up:
Experiment: A partition data block is corrupted and the partition table data is not fully recoveredBackground: The database does not have a valid backup and a partition has corrupted data blocks.Requirement: Maximum recovery of this partition
[Oracle] How to set event (eg:ora-00235) for a databaseWhen you use SPFILE,Setting procedure:1. Check The current event setting status:Sql> show parameter event;2. Add an event and set it up:If there is the no existing event, it is set as
--PLSQL block structure, calculate a, B andDeclareaint:=Ten; bint:= -; cint; beginC:=A+b; Dbms_output.put_line (c); End;--%type data type, output employee name and job title informationDeclarevar_ename Scott.emp.ename%type;var_job
Starting with oracle10g, Sqlplus provides a parameter option-prelim, with this parameter, when the system is already hang. We can connect to the SGA instead of the database, i.e. no session is created.A. The following steps allow you to obtain
1 company Computer is Win7 64-bit flagship version, just come with the new computer, 4G+I5 This configuration does not install 64 bit that is wasted. Who knows when everything is finished, open the project and don't even have Oracle data ...The
Throws an exception in three different ways 1. Through the PL/SQL run-time engine 2. Using the Raise statement 3. Call the raise_application_error stored procedure When a database or PL/SQL error occurs at run time, an exception is
Insert operation:
1. Copy the table structure without adding data:
--Copy table structure without inserting data create TABLE Emp_new as SELECT * from emp where 1 = 2;select * from emp_new;
2. With CHECK option, the Mate view can
Get a copy of Oracle's automated backup restore script from a colleague, looks very powerful, bitter in the bat syntax is not familiar, looked for a half-day document, first understand a small paragraph@echo ifREMin batch, we can use Setloacl
with T1 as (select Ylplid,max (SBSJ) sbsj from YLPLCG where Ylplid in (select Ylplid from CYQYCPYLPLGX where cpid= ' 659DE0BC 42544b74b660e37e665f437c ') group by ylplid) SELECT t.ylplmc,case if t.ylpllx =1 then ' raw material ' when T.YLPLLX = 2
Introduction to Oracle CompanyOracle is the world's largest software vendor, operating system vendor, programming language provider, database provider (another Microsoft), Oracle database, but Oracle database originates from IBM (ibm-- An analyst's
The "Ignorant Oracle stored process" has given you a lot of information about the development of stored procedures related to the basic knowledge, the author made the best efforts to summarize all the knowledge of the stored procedures, share to
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