Introduction to two methods for. NET Oracle Databases1. Install Oracle client, connect Oracle
The client and Server service names and connection strings need to be aligned in the client%oracle_client_home%network/admin/configuration Tnsnames.ora,
Author: eygle Source: BLOG
The transformation of the system is often needed in the development, this paper introduces several commonly used transformation methods.
116 binary conversion to 10-system
Can be implemented through the To_number
In fact, according to the previous problems I have done a few days debugging, found the problem, and successfully in my own small project to use the normal practice, then I will now share my experience.1, the database connection and the contents of
Grammar
The code is as follows
Copy Code
InStr (string1, string2 [, Start_position [, Nth_appearance]])
String1 is the string to search for.
string2 searches for substrings in string1.
Start_position is where
The first step: I first use rownum
The code is as follows
Copy Code
--pagination row_number, not rownum--according to N_count from big to small, each page 3SELECT rownum r,t.* from T_news tWHERE rownumORDER BY T.n_count
Oracle uses regular expressions without these 4 functions:
1. Regexp_like
2. Regexp_substr
3. Regexp_instr
4. Regexp_replace
Look at the function name and guess what's the use.
Regexp_like
How to use Oracle rowID
1. Create a temporary tableCREATE TABLE Test_rowid (ID number, row_id rowid);2. Insert a row of recordsINSERT into TEST_ROWID values (1,null);3. Modify the record you just insertedUpdate Test_rowid Set row_id = rowid where
Conditions in SQL are often used in select,delete,update statements, where range condition contains only: (not) between ... and.
2 Oracle's between ... and.. Both front and rear are closed intervals, that is to say, a number of two ends, for
Oracle UNIQUE constraints, here to share with you, hope to be useful to everyone. If a constraint works only on separate fields, you can define constraints at the field level, or you can define constraints at the table level, but if a constraint
Regexp_like in Oracle (VALID_STR, ' ^[+-]?d+ (. d)? d*$ '); is used for positive numbers, Chinese with new Regex ("[u4e00-u9fa5]+", regexoptions.compiled);
Create or Replace function Isnumber (valid_str in VARCHAR2)
return number
Is
The composition of a pack1) Baotou (package): Baotou part of the declaration of data types, constants, variables, cursors, subroutines and exception error handling,These elements are the public elements of the package.2) Package Body: The package
Cast (the value to be converted as the type of the conversion);Question: "As Fsubbillno if the Oracle default field type is char and the field length is the length of the input space, it causes the string to be very long or to be mismatched when
I. Allocating space to empty tables:
This step must be done, otherwise an empty table cannot be exported.First connect the library you want to export, and execute the following SQL on the library:Select ' ALTER TABLE ' | | table_name| | '
During the process of Oracle DML operation, there may be problems such as key duplication or inconsistent data type, which should be considered in advance to avoid the failure of the update. Oralce gives a number of other solutions to use in
Starting with version 9.2 Oracle introduces the concept of a virtual index, which is a "forged" index whose definition exists only in the data dictionary and has an associated index segment. The virtual index is designed to verify whether the
PL/SQL is also a language, and background development is often used.At present to do to a function, about the "report task scheduling", said to understand is to do a few reports, daily statistics of new data, used in the PC page display, I have been
--1 CREATE VIEW Show_max_sal_name_view display the highest wage employee name and his salary create or replace view Show_max_sal_name_view asselect Ename,sal from SC Ott.emp where sal= (select Max (sal) from scott.emp), select * from
A NOT NULL constraint is a non-null constraint that often adds a non-null constraint when creating a table to guarantee that the field must enter a value(1) Add NOT NULL constraint when creating tableGrammar:CREATE Table table name (field type not
* To change the template of the generated file in TODO, go* Window-preferences-Java-code style-code template*/Package person. fane. test;Import java. SQL .*;/*** A jdbc test application for Oracle* @ Author Fane* @ Version 1.0.0* @ Since
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