The server is Windows Server 2003. After the Oracle client is installed normally, when data is inserted, all Chinese characters are displayed ?.
Exception:
Enter select userenv ('language ') from dual in the PLL/SQL statement, and the result is
SQL * loader (sqlldr) is an oracle high-speed Batch Data Loading tool. This is a very useful tool for loading data to the oralce database in multiple flat file formats. Sqlldr can load a large amount of data in a very short time. It has two
It is easy to achieve automatic growth of inserted data in SQL Server, but it is not easy to implement this operation in oracle Database. net to obtain the id of the newly inserted data, and there will be no read errors, it is more difficult, in
1. Create a connection string that contains the database name, user name, and password.
2. Create an operation string containing SQL statements for Data Operations
3. Establish a Connection and use the Connection string as the parameter.
4.
Yesterday, we found that the data analysis results in the program were incorrect. After the analysis was performed again, the original data was still there and the fields with values were accumulated. The heart said, No, It was analyzed only after
Because subtotal is involved, it needs to be calculated twice.
Idea:
1. Insert the query results to the temporary table,
2. Insert the statistical result to the temporary table.
3. query temporary table records and place them in the cursor.
4.
In oracle, The utl_file package provides some functions and procedures for operating text files, and learns their basic operations.
1. Create a directory and authorize the user
Copy codeThe Code is as follows: -- create directory
Create or replace
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
1. COMMIT_FORM and COMMIT
Both form and database are submitted. Submit the data changes in form to the background database, and submit the data in the database.
2. DO_KEY ('commit _ form ') It will first execute the code in the KEY-COMMIT trigger.
SQL1:
Copy codeThe Code is as follows: -- 1. view the table space name and size.
SELECT t. tablespace_name, round (SUM (bytes/(1024*1024), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t. tablespace_name = d. tablespace_name
Group by t.
During work, you need to import data from the GIS_WEICHAI_DATA_1S table in one database to the GIS_WEICHAI_DATA_1S table in another database. The database servers are all remote ! My implementation method is to use PL/SQL locally to operate two
Comparison of some simple commands of Oracle and mysql
1) SQL> select to_char (sysdate, 'yyyy-mm-dd') from dual;
SQL> select to_char (sysdate, 'hh24-mi-ss') from dual;
Mysql> select date_format (now (), '% Y-% m-% D ');
Mysql> select time_format
SQL code
Copy codeThe Code is as follows: select count (*) from user_objects where object_name = upper (p_table_name );
Select count (*) from user_tables where table_name = upper (p_table_name );
Create or replace procedure p_drop_table_if_exist_v1
The current system time is the week of the year.
Copy codeThe Code is as follows: select to_char (sysdate, 'ww '), to_char (sysdate, 'iw') from dual;
Select to_char (sysdate, 'ddd ') from dual;
Select TRUNC (SYSDATE, 'mm') from dual; 1)
The ww
Requirements:
You need to find that a customer has continuously handled the business for those days of a year.
The SQL implementation is as follows::Create a table:Copy codeThe Code is as follows: create table test_num(Tyear number,Tdate );
Test
1. Oracle downloadNote that Oracle is divided into two files. After downloading, extract the two files to the same directory. In the path name, it is best not to show Chinese characters or irregular characters such as spaces.
Official Address: Bytes.
Introduction to iSQL * PLUS
ISQL * PLUS is a new feature provided since ORACLE 9i and is a Web form of SQL * PLUS (not supported by ORACLE 11g ). It is designed based on a three-tier structure. Its client, middle, and server can be located on the
There are two methods:
One is to declare the system cursor, the other is to declare the custom cursor, and then follow the same operation, the parameter type is
In out or out
(1) Declare the personal system cursor. (recommended)
Copy codeThe Code is
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