The trunc function is the Intercept date, which can be accurate to the hour. The date data type is still available after the interception.
First, basic usage1, the default interception to the day, for example:
Select Trunc (sysdate) from dual;
1, the Heap organization table (heap organized table)is the "normal" standard database table. Data is managed in a heap manner. The records in the heap organization table are unordered and are not placed in a particular order.
2, Index Organization
In the security more and more attention to the near body, we often need to a table in the Database sensitive column data (bank card, ID number, amount, etc.) to encrypt, way data leakage, in the 11.2.0.4 can be implemented through the Dbms_crypto
Advantages of using partitions:
1. Enhance usability: If a partition of a table fails, the data in other partitions is still available;
2, Maintenance Convenience: If the table of a section of the fault, need to repair the data, only repair the
My understanding of the temporary table: Create a table in Oracle that doesn't need any other functionality, is used primarily for some specific features of its own software system, and is useless when you run out of data in a table. If you do not
select * from dictionary;
--Data dictionary
The data dictionary is where Oracle holds information about the database tutorial, and its purpose is to describe the data.
For example, a table creator information, create time information, belong to
Sequence in Oracle is the serial number, which automatically increases each time it is fetched. Sequence is not related to the table.
1, Create Sequence
First, create sequence or create any sequence permissions.
The statement is created as
Depending on the characteristics of the Oracle database and the tools provided, the main methods are as follows:
Tables that use logical backups to lose data using the Import tool
Use physical backups to restore data files and perform
Do not worry too much if you execute SQL statements directly or parameter bindings.
such as the following Oracle stored procedures
Create or Replace procedure Kjdatepoc (date D)
As
Begin
INSERT into kjdatetable values (d);
Commit
End
There is
/*
Little brother just contact Oracle stored procedures, there is a problem to colleagues to consult, younger brother wrote a stored procedure, the purpose is to receive a parameter as a table name, and then query the table of all records in one
Methods 1:x:\oracle\ora81\bin\wrap iname=xxx Oname=xxx
Method 2:9i uses wrap to encrypt stored procedures under Win2000, 10g can use encrypted packets dbms_ddl.wrap or dbms_ddl.create_wrapped.
11.5.1 uses wrap to encrypt stored procedures under
Oracle's analytic functions are very powerful and have been used frequently over the years. This time you will often use the analysis function to sort out, for future viewing.
It's easier to understand that we learn from cases.
1, build the table
Ora-12541:tns when connecting to an Oracle server with a client tool such as Pl/sql Developer: No listener error, as shown in the following figure:
It turns out that the Oracle Monitor did not start and the connection was successful after the
1. Query this node and all nodes below this node:
2. All hierarchy relationships in the query node
SELECT rpad (', 2* (LEVEL-1), '-') | | Depname "Depname", Connect_by_root depname "ROOT", Connect_by_isleaf "IsLeaf", Level, Sys_
Was told that test user was locked on login
1, with the DBA role of the user login, to unlock, set the specific time format in order to view the specific time
Sql> alter session set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss ';
Session
ASP (Active Server Pages) is one of Microsoft's tools for developing Internet applications, and the ASP's connection to the database is typically done through ADO (Activex Data Object), like the computer World March 20, 2000 As described in the ASP
Today we have implemented a jsp + oracle paging implementation, which is good for beginners (you can implement it yourself after reading it ), however, for SQL statements with a basic understanding (which does not involve good layering), let's start
Thinkphp's support for Oracle is simply weak. It only performs basic operations, and even transactions are not supported. Modify DbOracle. class. php manually today to make it easier to use.First, insert. There should be no problem with the
1. sqlserverSqlconnetion coon = new sqlconnection ("data sourse = localhost; inregrated secyrity = sspi; initial catalog = student (database tutorial name); user id = sa; pstutorial w = 12345; (Do not write this statement without a password) ");2.
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