Change the table structure
1. Edit table fields
Modify the Data Type of a column (generally, the length is limited and there are many restrictions when you change it to a different type ):
Syntax:
Alter table name MODIFY (column name, data type
When I write an SQL statement todaySelect sum (. plate), sum (. qty), sum (. qly),. materialtypeid, B. name, B. spec, from fw_eqpres_materialinventory a, fw_eng_material B where. materialtypeid = B. sysidAnd B. name like '% XX %'Group by a.
-- User-- View the default tablespace of the current userSelect username, default_tablespace from user_users;-- View the role of the current userSelect * from user_role_privs;-- View the system and table-level permissions of the current userSelect *
In oracle, Number is divided into two types: 1. Number 2. Number)The first type corresponds to the integer int long short byte in java.The second method corresponds to the floating point float double in java.The date in oracle corresponds to java.
It is quite easy to delete records in the FORM, because the FORM can delete the current record based on the row where your cursor is located, as long as you simply write delete_record in the Trigger.However, in OAF, the deletion I currently know is
Java code
Sqlplus/nolog
Conn/as sysdba
Java code
Shutdown immediate
Startup mount;
Alter database open;
Java code
ORA-00313 and ORA-00312: oracle initialization or shutdown in progress
Alter database clear logfile group 1;
Alter
-------- 9. list all employees whose salaries are higher than the company's average salaries. ----------Select ename from emp where sal> (select avg (sal) from emp );9.1 list all employees whose salaries are higher than the average salaries of their
Before installing clusterware, the following error occurs when you check the installation environment: User equivalence unavailable on all the nodes:
Search for the solution on the Internet as follows:
Run the following command under the root
First, let's take A look at the data type. For comparison, use the> =; for comparison, use the to_date function to convert the data type of field B, and specify the format as needed;A LOGON_TIME DATEB KPI_VALUE VARCHAR2 (400)The following are
You need to create these Delete statements, use the oracle Data dictionary to find all tables, views, and other objects under the user, and splice idioms.
As follows:
Select 'drop table' | table_name | ';' | chr (13) | chr (10) from user_tables; --
There are four functions that support regular expressions in ORACLE:1. REGEXP_LIKE: similar to LIKE2. REGEXP_INSTR: similar to INSTR3, REGEXP_SUBSTR: similar to SUBSTR4. REGEXP_REPLACE: similar to REPLACEThey are used in the same way as Oracle SQL
Export Several SQL statements of CLOB:
1. Export M records containing big field data
Exp user/passwd statistics = none compress = n consistent = y file =/oradata/info/backup/exp_article.dmp log =/oradata/info/backup/exp_article.log tables =
All about Data Guard 1. Data Guard Configurations (Data Guard Configurations) Data Guard is a collection composed of one primary database (production database) and one or more standby databases (up to nine). Databases that make up Data Guard are
In ORACLE, the context sys_context is used for the creation of sys_context and the system on which the application is recently used. Therefore, I searched the internet and wrote it down for emergency purposes. First, what is context? I think it is a
In order to verify the scenario of SQL hard parsing, the following six test examples are set for Oracle hard parsing: 1. Common queries without bound variables 2. Test queries with Bound variables 3. Test queries with changed SQL statements under
[Oracle]-[SNIPED and KILLED]-Example of the session cleaning process @ dbsnake danale for the SPINED and KILLED:
SQL> show parameter limitNAME TYPE VALUE------------------------------------ -----------
ERROR-Agent is blocked. blocked reason is: Agent is out-of-sync with repository today, a host in the oem grid is restarted, causing the AGENT to be inaccessible. The following ERROR is reported in the view detailed log: ERROR-Agent is blocked.
Oracle pl/SQL entry (ONE) I) PL/SQL when writing rule definition variables, we recommend that you use v _ as the prefix. When defining constants for eg: v_sid and v_name, we recommend that you use c _ as the prefix to define the cursor. When _
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.