34th lecture 1. the no_data_found proposed last time will expire in update, because the manual only applies to select into when you must use update table set, select * w can be added to achieve the effect of using select *. 2. function, its
Currently, the project database is changed from sqlserver to Oracle. Therefore, all SQL statements in the project must be changed to the oralce-supported style. This table is updated during the process. After an afternoon, I finally got it done.
An error is prompted when you use an SQL statement to insert data into the long field in Oracle:
I have such a problem. In the C # component, I use oledbcomment. executenonquery () method executes an SQL statement that updates a long string to a
I recently started a project and want to use ORACLE again. In fact, I don't like Oracle very well. Maybe it's something I'm used to in ms.
One problem is that we need to insert data into the data table to implement auto-increment numbers like SQL
When the data in the table is not required, delete the data and release the occupied space. To delete the data in the table, use the delete statement or the truncate statement.
I. Delete statements
(1) conditional Deletion
Syntax format:Delete
When using Oracle, we often encounter some problems that cause us to have to uninstall or reinstall the Oracle database. However, uninstalling the Oracle database is a headache. If it is not correctly uninstalled, it may cause you to have to
Database indexes store the column values of interest to users along with their row Identifiers (rowid ).
Rowid contains the physical location of the table row storing the column value on the disk.
Although indexes can improve the query
Function Index
Select*From Demot WhereF7= 'F';
Select*From Demot Where Lower (F7) = 'F';
There was a bitmap index on F7, but after using the lower function, the whole table was scanned.
Next, we will
I,Basic SELECT statement
Select * from table name;
Slect field name from table name;
Select identifies which columns to select.From identifies from which table to select.
II,Note:
The SQL language is case insensitive.SQL statements can
Stored Procedure Lecture: the following content was heard when I waited at the bus station in Ningbo yesterday. At that time, she fell in love with a girl (with a red coat and bright eyes) and finally sat down in Ninghai's car.
1.
Create
Backup:
Alter Database Backup controlfile to 'xxxxxxx' reuse;Alter database bakcup controlfile to trace as 'xxxxxxx ';RMAN backup control file
Restore an instance: 1. Use binary backup for recovery after the control file is damaged
In fact, this problem is not difficult, but it has been found on the internet for a long time. There are also between and minus. However, neither of these methods can successfully complete the paging query with sorting. Finally, we found a solution
Where and having are both filtering the query results. The book points are the statements that set the conditions. The following describes the usage and similarities and differences. Note: The fields used in this article are the EMP table under
1. Create a table
Create Table Name (
Column name 1 type,
Column name 2 type
);
2. Modify class attributes
Alter table table name modify (column name type );
3. Add Columns
Alter table table name Add (column name type );
4. Add primary key
It is also strange to say that there will be so many problems when we get this thing for the first time.
After studying Oracle connections for more than a day, there is a query problem. It is also strange to say that the Chinese fuzzy query in the
The table below shows the ADO data type mapping between access, SQL Server, and Oracle:
Datatype Enum
Value
Access
Sqlserver
Oracle
Adbigint
20
Bigint (SQL Server 2000 +)
Adbinary
128
A constant
The definition of a constant must include the keyword constant.
Example: zero_value constant number: = 0;
2 variables2.1) Declare VariablesVariable_name [constant] databyte [not null] [: = | default expression];Example: V1 varchar2 (25 );
I write this post is just to make a summary of a point met this week.
If not, ask friends in the garden to give more comments.
During this week's work, you need to add a function to pakage. This function requires dynamic SQL organization,
To
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