Create table test as select * from dba_objects where rownum BeginFor I in 1 .. 7 loopInsert into test select * from test;Commit;End loop;End;BYS @ bys001> select count (*) from test;COUNT (*)----------1280000Elapsed: 00:00:01. 12BYS @ bys001> select
Some function records of Oracle to_char.
1. Convert to year, month, day, hour, minute, and second;
2. Turning it into a subtle operation
SQL> select to_char (systimestamp, 'yyyy-mm-dd-hh24: mi: ss. ff') from dual; TO_CHAR (SYSTIMESTAMP, 'yyyy-MM-----
Platform: RHEL4.5, Oracle10.2.0.1Plan: db_name = ORCLDB, db_unique_name/ORACLE_SID = WENDINGThe above two parameters can also be set to the same, here is the main difference.1. Set Environment Variables$ Export ORACLE_BASE =/u01/app/oracle$ Export
Table types can be used in Stored Procedures for batch addition.
Table type definition:
Create type dbo. subCardTable as table ([SC _ID] [varchar] (50), [ZhuKaInfo_ID] [varchar] (50), [Project_KeyName] [varchar] (50 ), [SC _CardNumber] [varchar]
Code:
Private Sub some_Click () 'defines the Dim txtSQL As String Dim MsgText As String Dim Online_mrc As ADODB. recordset Dim mrc1 As ADODB. recordset Dim txtStr As String Dim MsgTxt As String Dim mm As String 'when no row is selected, the user is
What is the meaning of adding N before the T-SQL string, such as select @ status = N 'stopped ', then why should N be added before the string stopped? In addition, we find that N is not affected in some places, and N must be added in some places.
2: How to view SQL Execution plans without using third-party toolsSet autotrace on If the following error occurs:SP2-0613: unable to verify PLAN_TABLE format or entitySP2-0611: An error occurred while enabling EXPLAIN reportRun oraclehome \ ora92 \
The IndyTCPDB component is developed based on Indy10.6 and can quickly integrate the existing C/S software (ADO/BDE/dbExpress) is supported by IndyTCPDB, which can be applied to the Internet and secure information systems.
IndyTCPDB uses the
When you exit SQLPLUS, there is no response-you cannot exit normally if you are stuck.When you log on to the host where the database is located and use SQLPLUS to log on to the DBA, an error occurred while archiving.
[Oracle @ oel-01 ~] $ Sqlplus
/* Implemented functions: Use a database to store text data and read it and put it in the current project for analysis: the difficulty is not great. The key is to master the file stream, and there are not many database operations, but the file
1. Non-connection mode (dependent on datasets)2. Connection Mode (directly operate on the database)
You can use a command object to execute SQL statements or stored procedures. If the execution result returns a record set, you can use the
Common methods to solve IO problems:
Through SQL optimization, you can reduce the IO requests of the database:
Adjust the instance parameters to reduce the database's IO requests:
Compared to 1000 data transmission requests
www.codeke.com List name enter a word enter the old word select Operation Type Add Delete change query Title: Add news query news
www.codeke.com setDanci ($
We can see that the cpu usage of oracle processes such as 6331,6517 is too high,
2) view related process information:
[oracle@oracle-one ~]$ ps -ef | grep 6331oracle 6331 1 23 20:24 ? 00:02:05 ora_vktm_RHYSoracle 6555 6385 0 20:32
The scope of this article is only true paging. The paging mentioned below also refers to real paging.).
Paging commonalities
Comparison of Three data paging Methods
Special Page of MySql database
Common Paging for Oracle databases
Select T.
This operation is performed at the WIN command prompt, and phpMyAdmin is also applicable.User: phplamp user database: phplampDB// Log on to MYSQL@> Mysql-u root-p@> Password// Create a userMysql> insert into mysql. user (Host, User, Password) values
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