1. OriginWhen the oracle database field value is less than 1 decimal point, the char type is used for processing, and the 0 before the decimal point is lost.For example, 0.35 is changed to. 35.
2. Solution: Use the to_char function to format the
You can use the following SQL statement in PL/SQL to query which tables in the current database are locked and which users are locking these tables:
SELECTA. OWNER, -- user to which the OBJECT belongsA. OBJECT_NAME, -- OBJECT Name (table name)B.
Session: a Session is called in a computer, especially in a network application ".Session: In computer terminology, Session refers to the time interval between an end user and the Interaction System. It usually refers to the time between the user's
When writing another stored procedure, the following SQL statement is used:Copy codeThe Code is as follows:Select max (RE_DATE) INTO V_RE_DATEFROM T_RECORDINGWhere id = '000000' It is reasonable to say that the query result based on this condition
SQL codeCopy codeThe Code is as follows:Create table test (a VARCHAR2 (20), B VARCHAR2 (20), c NUMBER, d VARCHAR2 (20 ))Insert into test VALUES ('a1', 'b1', 1, 'T ');Insert into test VALUES ('a3 ', 'b3', 3, 'T ');Insert into test VALUES ('a4 ', 'b4',
Go to sqlplusSQL> set timing onSQL>SQL> select count (*) from comm_human_role;COUNT (*)----------866Elapsed: 00:00:00. 05The preceding digital outputs are: Hours: Minutes: Seconds. Milliseconds.It takes 0.05 seconds to execute, which is equivalent
A union array is previously called a PL/SQL table. Union arrays cannot be used in tables. They can only be used as structures for programming. Union Arrays can only be accessed in PL/SQL.It is very important to note some key issues brought about by
To simplify the process, I have created a unified database check account on multiple Oracle data, and my account can only access several specific views (the SQL statements to be queried have generated views ), the procedure is as follows:Root>
Raise a code segment and ask for help.The code snippet is as follows:Copy codeThe Code is as follows:DeclareType t_indexby is table of numberIndex by binary_integer;Type t_nesteed is table of number;Type t_varray is varray (10) of number;V_indexby t_
1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ascii (A) A, ascii (a) a, ascii (0) zero, ascii () space from dual;A ZERO SPACE------------------------------------65 97 48 322. CHRReturns the corresponding
First, exp unload the data to the file system to generate. dmp file, and then the data is loaded into the database by imp when necessary. for small and medium databases, the dmp file generated by the full database exp may be less than 2 GB, but for
The ORACLE tutorial is: Oracle-based object-oriented technology basic analysis of the developer's network Oracle.
I. OverviewAn object is a new feature of Oracle8i and later versions. An object is actually an encapsulation of a set of data and
1. INSERT (INSERT the record statement into the data table)
Insert into Table Name (field name 1, field name 2 ,......) VALUES (value 1, value 2 ,......);Insert into Table Name (field name 1, field name 2 ,......) SELECT (field name 1, field name 2
The ORACLE tutorial is an Oracle database operation skill set. [Editor's note:] Oracle (Oracle) is the first company to come up with databases ). Oracle has been in the leading position in the database field. Oracle relational database system is a
The ORACLE tutorial is: Analysis of garbled characters in the Oracle 8i Character Set and solutions. I. Problem DescriptionSQL Plus WorkSheet is an SQL statement editor for window graphic interfaces. This tool is very popular with SQL/PLUS for users
The ORACLE tutorial is: Renaming the foreign key of the Oracle system table.
The Foreign keys in Oracle tables are the means to ensure the integrity of the system's reference, and the integrity of the Reference refers to the constraints that are
The ORACLE tutorial is: Fully uninstall Oracle9i in the Win2k environment. 1. Delete the primary entry of Marshal in the registry:Regedit.exe-> LocalMachine-> Software-> Oracle2. Delete the Marshal Service:Regedit.exe-> LocalMachine-> System->
The ORACLE tutorial is to use and maintain the Oracle password file.
Summary: Oracle relational database system has been widely used for its excellent performance. Ensuring database security is an important part of database management. This article
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