Create Table products (Productid number (10) Not null,Name varchar2 (255 ),Description clob );
Query statement:
Select T. productid, T. name from products t
Where dbms_lob.instr (T. Description, 'aaa', 1, 1)> 0;
In Oracle, you can use the instr
Five parameters
The first is the input string.
The second is a regular expression.
The third is the regular expression matching starting from the character. (1 by default)
The fourth is to identify the matching groups. (1 by default)
Computing time difference is a common problem of ORACLE data types. Oracle supports date calculation. You can create expressions such as "date 1-date 2" to calculate the time difference between the two dates.
Once you find the time difference,
1st day of last month 00:00:00
Select to_char (add_months (last_day (sysdate) + 1,-2), 'yyyy-mm-dd') | '00:00:00 'firstday from dual;
23:59:59 on the last day of last month (the last day of each month is the first day of next month minus one
Stored Procedures, functions, triggers, tables, etc.
In PL/SQL:
Export:
Tool --> Export user object --> select multiple user objects to be exported, and select the path of the output script file (SQL file) --> export. A. SQL script file is
The Oracle password file is used to store the passwords of all users who connect to the database with the sysdba or sysoper permission. to remotely connect to the database with the sysdba permission, you must use the password file. Otherwise, you
1. Oracle System ArchitectureUnlike other database products, Oracle has its own unique system architecture. The Oracle system architecture is the framework of the entire ORACLE Server System and the basis and core for managing and applying ORACLE
Differences between struts1 and struts2:
1) Comparison of Action Implementation classes: struts 1 requires action classes to inherit an abstract base class; a specific problem of struts 1 is the use of abstract class programming rather than
This article mainly explains
1. A new jdbc api in Oracle 10 Gb for convenient processing of large clob Fields
2. A sample program for processing large fields in Java
A. What is clob?
Lobs (large ojbects) is used to store unstructured data, such as
If not exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [tablespaceinfo] ') and objectproperty (ID, n' isusertable') = 1)
Create Table tablespaceinfo -- create a temporary table(Nameinfo varchar (50), -- table nameRowsinfo int, -
The difference between the Oracle database and the MySQL database is what we will introduce in this article, hoping to help you.
1. Group function usage rules
In MySQL, group functions can be used at will in select statements. However, if a group
1. How does one calculate data?Data Statistics are used to record the activity of data statistics, including data statistics and SQL statements, log on to Alibaba Cloud dataworks.
Ii. Memory storage method of memory recordThere are two types: memory
This topic describes common parameters.
Audit_file_destParameter type: StringSyntax: audit_file_dest = 'directory'Default Value: ORACLE_HOME/rdbms/AuditParameter category: staticAudit_file_dest defines the path for storing audit files in
Oracle role
1. What is a role?In the previous sections, I described permissions and users. Slowly, you will find a problem: if a group of people have the same permissions they need, it will be inconvenient to manage their permissions. Because you
This article is based on 17th articles on Oracle architecture and management. Ii. network host structureNetwork host structure, that is, multiple Oracle hosts form an oracle host system. Each host communicates with each other through Oracle Net
As we mentioned earlier, Oracle instances consist of a memory structure and a group of background processes. The important background processes of Oracle include:
· SMON· Pmon· Dbwr· Lgwr· Arch· Ckpt
Next we will introduce the functions of each
PL/SQL records and tables1. Use % type (for basic data type)Example 1 (the user does not know the course_no data type, but only knows that it is based on the student_no data type and changes with the student_no type ):Declare...Student_no integer;...
For beginners, many Oracle names are confusing. Me too. The relationship between database name-Global name-service name-Instance name-alias is constantly cut, and the logic is still messy. I understand it. It's a bit of a taste in my mind.
SQL> show
Environment:
mysql> show variables like '%storage_engine%';+----------------+--------+| Variable_name | Value |+----------------+--------+| storage_engine | InnoDB |+----------------+--------+1 row in set (0.00 sec)mysql> select version();+-------
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