1. In Oracle:
Select org_id
From organizations
Start with org_id=: org_id
Connect by Prior org_id=supervision_org_id
ORDER BY supervision_org_id
2. SQL Functiong:
Functionno Subfunctionno Subfunctiontype
Systemadmin Privilege 0
Systemadmin
1. The origin of the problem
When the Oracle database field value is less than 1 decimal, processing with the char type loses 0 of the preceding decimal point
For example, 0.35 becomes. 35
2. Solution: Format digital display with To_char function
In peacetime development, we often encounter data tables in the duplication of data, then how to solve it? Here are two cases of data-weight method, one, complete duplication of data to weight, two, part of the field data duplication to heavy.
A
After the database is installed, enable the OEM.Emctl Start DbconsoleIf there is a problem with login Http://oracle11g:5500/em/consoleTry rebuilding an OEMFirst Emctl Stop DbconsoleEmca-deconfig Dbcontrol Db-repos DropEnter Oracle SID,SID must be
--1 Import data to the database times the ora-01653:unable to extend table error, online Check the following reason is due to lack of table space;Querying table space Usage statementsSelect a.tablespace_name,a.bytes/1024/1024 Total, (a.bytes-b.bytes)
Environment:Oracle Standalone 11.2.0.4Parameter file location: >show parameter SPFileEdit parameter file: >create pfile= ' D:\init.ora ' from SPFile*.optimizer_index_caching= #这个初始化参数代表一个百分比, the values range from 0 to 99. The default
Java code: First define a method that reads a BLOB field from an Oracle database and writes bytes to an output stream. 1 Public Static voidwriteimg (outputstream os) {2 Connection con;3 Try {4Con =connectionfactory.getconnection
When looking at Oracle execution plan, you often encounter access and filter, the brain capacity is too small, always confusing the difference between the two ... Tidy up a little.Access: Indicates that the corresponding predicate condition affects
--Select SyntaxSelect [DISTINCT | All]select_list fromtable_list[Where_clause] [Group_by_clause] [Having condition] [Order_by_clause] --Syntax Description Select: Query The action keyword, you must have it. [DISTINCT | All]: The query field is in
SelectCase when (grouping (GLBM) =1) Then ' total ' else DECODE (Glbm,null, ', GLBM) end GLBM,Case when (grouping (HPZL) =1) Then ' else DECODE (hpzl,null, ' ', Hpzl ') End HPZL,Case is (grouping (SYXZ) =1 and Grouping (HPZL) =0) Then ' subtotal '
The subquery result set in EXISTS is not empty, and the value of the EXISTS () clause is true.The subquery result set in EXISTS is empty, and the value of the EXISTS () clause is false.The subquery result in not EXISTS is non-null, the value of the
Recently developed a small problem encountered, after executing a section of SQL found that the table is lockedDisplay error: Ora-00054:resource busy and acquire with nowait specifiedBaidu later found that the session process stuck, it can be said
1. Create User User1Create user User1 identified by xxxxDefault Tablespace xxxx_tableTemporary Tablespace TempProfile defaultGrant connect to User1;2, Way one: Batch table to empowerSelect ' Grant select on Pposuat_17. ' | | table_name | | ' to
1, take the first day of the year and the last day of the yearSelect Trunc (sysdate, ' YYYY '), Add_months (Trunc (sysdate, ' YYYY '), 1 from dual TSelect To_char (Trunc (Add_months (Last_day (Sysdate),-1) + 1), ' yyyy-mm-dd ') "The first day of the
Oracle transaction isolation is a different degree of data isolation for transactional read operations, divided into read_uncommitted, read_committed (default), and SERIALIZABLE.Oracle TRANSACTION ISOLATION level serializable to resolve dirty reads,
from:http://blog.csdn.net/iw1210/article/details/11937085Intent: Implement SELECT top 1 * FROM TableNameUsage of the row_number () over () analysis function in OracleRow_number () over (partition by col1 ORDER by col2) indicates that sorting is
1. When querying, use the name of the column as much as possible;2. When the sub-query and multi-table query can achieve the goal, try to use multi-table query;3. In a set operation, if the collection contains null, it cannot be in, but can be used
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