References: http://chengjunflying.iteye.com/blog/698505
In Oracle, if you want to perform the order by operation on varchar fields, you must first convert them to the numeric type, such as int type.CastKeyword.
Example
select procedure_no
I saw a lot of people do it.
CodeGenerator. Of course, I have also referred to many previous experiences here. The generated code format is defined by XSLT. Now this generator only generates the model. Specific extensions can be made in the project.
. Table data replication between different users
For two users A and B in a database, if you need to copy the old data in Table A to the new data in Table B, use a user with sufficient permissions to log on to sqlplus:
Insert into B. New (select *
The Null Value in Oracle does not mean anything. Is not null.
For example, in table 1, there is a nub_flag of the number (1) type. Some of the values are already 1, and others are all empty. You want to update other values to 0.
Write a statement
In Oracle learning, the focus is on SQL statements, and all SQL statements must be completed under Scott. This user has four tables in total, which can be used:
Select * FromTab;
View the names of all data tables. To know the table structure of
Basic PL/SQL
PL/SQL statement Block
Set
Serveroutput
On
Size
10000 -- set the buffer
Declare
X
Varchar2
(
10
);
Begin
X:
=
'
This is
'
;Dbms_output.put_line (
'
The value of X is:
'
|
X );
End
;
Oracle9i introduces a new SQL statement, which can be used to connect two tables in one statement.Before using update to update records in both tables, or using insert to add records that do not exist in the two merged tables, you must write two SQL
Field type description other restrictions----------------------------------------------------------------------------------------Char fixed length string maximum length 2000 bytesVarchar2 Variable Length string maximum length 4000 bytes can be
In the Oracle PL-SQL, left and right connections are implemented as follows
View the following statements:SelectEmp_name, dept_nameForm employee, DepartmentWhereEmployee. emp_deptid (+)=Department. deptid
This SQL statement uses the right
Select * from test
1 00 001 Big 5 152 00 001 medium 25 753 00 001 small 85 254 00 002 large 65 355 00 002 medium 95 856 00 002 small 85 257 01 001 large 16 148 01 001 medium 290 759 01 001 small 83 22
Select num, Flg, (Case when grouping (
Export directlyExp system/manager file = exp_full.dmp log = exp_full.log compress = N full = y direct = y recordlength = 65535View exported file contentIMP username/password show = y full = y file = A. dmp
Export option: compress = n to ensure
Confusing terms:Db_name:The unique identifier of a database (Oracle database), which is the Oracle database described in Chapter 1. This expression is sufficient for a single database, but with the popularization of distributed databases composed of
Remember to write something at school
Program When the database is used, as long as the function can be completed, no performance issues are considered at all, after the development of two large projects, I realized that the importance of database
What is paradigm:
Set the rules to be followed by the database. It is defined by a brother surnamed Fan.
Three paradigm goals:
There is no redundant data, that is, no duplicate data is stored, that is, data standardization.
Standardization
ArticleDirectory
1.1sql server Syntax: Top keywords used in SQL Server
1.2 MySQL Syntax: MySQL uses the limit keyword
1.3 Oracle Syntax: Use the rownum keyword in Oracle
References: http://www.w3school.com.cn/ SQL/SQL _top.asp 1
I read a lot of articles about Oracle provider in codesmith2.6. Codesmith3.0 was rarely seen about this. It was tested yesterday.
Enter codesmith's community, http:
// Community.codesmithtools.com/files/9/schemaproviders/default.aspx, in this
First let's talk about my notebook configuration: CPU: i3-2310M/memory: 4 GB (actual 2.95gb available because it is a 32-bit System)/graphics: GT 550 m (Display memory 2 GB) /Hard Disk: 500 GBWhen only Vs and SQL Server are installed, the startup
The latest project will be cascaded with the data generated by Oracle, marking:
Database:Our project: SQL2000 (independent server -- win2003)Customer: Oracle 9i (independent server -- win2003)Requirements:When the specific data in our project
1. Su Oracle2. sqlplus/logon3. Connect test/test as sysdba (test/test is an oracle user and password)4. startup5. LSNRCTL
Preferred database startupSu-OracleSqlplus/nologConn/As sysdbaStartupThen start the listener:Go to/opt/Oracle/product/9.2.0/bin/
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