Oracle Horizontal Vertical RollupThere is a table test as follows, (no student number, CJ score) No name CJ001 Zhang San Language 80 001 Zhang Three Mathematics 86 001 three English 75 002 Li four languages 78 002 John Doe Mathematics 85 002 Li Four
A few days ago encountered a question about Oracle does not equal, finally searched, found the following information, bring to share with you, the need for friends can refer to the next
about the non-equal number in Oracle:In Oracle,<>!=~=^=is not
Start from the Windows desktop → programs → Oracle- → configuration and transpose tools → Database configuration Assistant command, Open the Welcome screen of the Database Configuration Assistant dialog box, click the Next button in the interface
[Email protected] ~]$ Vi. bash_profile #. Bash_profile # Get the aliases and functionsIf [-f ~/.BASHRC]; Then. ~/.bashrcFi # User specific environment and startup programs Path= $PATH: $HOME/bin Export PATHUnset USERNAME Export
Sqlplus Linked database:1. Sqlplus username/password @ip address/database name2. Sqlplus username/password @ database nameNote: The second method is to configure the database name in the Tnsnames.ora fileLink Broken Link: connect/disconnectCreated
. Index classificationØ Classification by storage methodb* Tree index: b* tree index is the most commonly used index, its storage structure is similar to the index structure of the book, there are branches and leaves two types of storage data block,
Parsing Oracle's RowNumRecently, I have made further analysis and research on rownum when I use Oracle's rownum to realize pagination display. Now summarized as follows, hope to bring you a harvest.For rownum It is the number of the Oracle system
Views (view)A view is also known as a virtual table, which is a logical representation of a set of data.The view corresponds to a SELECT statement, and the result set is given a name, which is the name of the view.The view itself contains no data,
--Digital type functionSelect ABS ( -100) from dual;--absolute valueSelect mod (10,3) from dual;--moduloSelect Ceil (12.5) from dual;--upper bound integerSelect Floor (12.5) The lower bound integer from dual;--Select Round (12.46327,3) from
1. Check the system version number:uname-aLinux node2 3.10.0-123.el7.x86_64 #1 SMP Mon June 12:09:22 UTC x86_64 x86_64 x86_64 gnu/linuxCat/etc/redhat-release#CentOS Linux release 7.0.1406 (Core) Comment out the previous version numberRedhat-7
DeclareInst_name varchar2 (100);Cursor Mycur isSELECT * from Tran_forward t where t.instrument_type_id= ' 3010 ';Query_row Tran_forward%rowtype;BeginOpen mycur; --Open cursorLoopFetch mycur into Query_row; --Place the record indicated by the cursor
:: Export data for specified service (ORCL) and password (PMIs) on remote machine (192.168.2.1) via exp command: The machine running the script must have Oracle @echo off @echo [data for backup PMIs system] Set hh=%time:~0,2% set HH=%HH: =0% set SID=
Oracle stored procedures and functionsCreate a stored procedure:
Create or replace procedure proc_trade (v_tradeid in tt_ B .number % TYPE, -- transaction id v_third_ip in transaction % TYPE, -- third-party ip v_third_time in tt_ B .date % TYPE, --
Create and delete Oracle users1. Create a user
The username created in oracle must be logged on as an administrator; otherwise, insufficient permissions will be reported. Create statement: create user username identified by password.
Example:
Ii.
ORA-04031 error causes downtime case analysis, ora-04031
Today we met an ORACLE database downtime case. The following describes the causes of this database downtime case. In the analysis process, we will record the cause and effect of this case,
Oracle tree query start with connect by, oracleconnect
I. IntroductionIn oracle, start with connect by (prior) is used to query data in a tree structure. Here, start with conditon gives the range of data searches, and connect by gives the conditions
Oracle date functionsDate and character conversion function usage (to_date, to_char)
Select to_char (sysdate, 'yyyy-mm-dd hh24: mi: ss') as nowTime from dual; // convert a date to a string select to_char (sysdate, 'yyyy ') as nowYear from dual; //
Oracle policy problemsOracle policies can restrict query, modification, deletion, and addition operations. A test is performed on the query as follows: begin -- Call the proceduresys. dbms_rls.add_policy (object_schema =>: name of the Schema where
Pagination of result setsTo make it easier to query data on a web page, it is often displayed by page. For example, the employee table is required to display only five rows of data at a time, and the next five rows are displayed. The following uses
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.