Create or replace function f_format_date (v_date varchar2, format varchar)/* time format processing format */return dateas v_enddate date; v_rn varchar2 (2); v_last_date varchar2 (10 ); Y varchar2 (4); m varchar2 (4); D varchar2 (4); H varchar2 (4);
ErrorCodeAs follows:
Connection conn = drivermanager. getconnection ("JDBC: oracle: thin: @ localhost: 1521: orcl", "system", "myoracle ");
To confirm that the user name and password are correct.
The error indicates that the password has expired,
When initializing database data, you encounter the problem of inserting special characters '&', such as a menu table: ID, name, URL.
Insert data:
Insert into menu values ('1', 'product type', '/producttype. do? Method = List & type = 01 ');
Due
Oracle statements used to query all tables of a user
Select * From all_tab_comments-- Query tables and views of all users
Select * From user_tab_comments-- Query the user's tables and views
Select * From all_col_comments
-- Query the column
As shown in the following figure, Table A is an existing table in the database, and table B is the table to be copied and created based on table:
1. copy only the SQL statements of the Table Structure
Create Table B as select * from a where 1
Time: 2008/02/28Author: skate
Summary of table modification today to prevent future forgetting. Is it better to remember it !!!
Change the table structure
1. Edit table fields
Modify the Data Type of a column (generally, the length is limited and
After reading some examples on the internet, I changed the settings and did some experiments. I hope I can illustrate this.
Create a table and insert data:
-- Department table create table departments (depid number (), depname varchar2 (20), delflag
########################### In ############ ################
Create or replace procedure pro_eight (p_one in varchar2, p_two out varchar2, p_three in out varchar2) is v_str1 varchar2 (32): = ''; v_str2 varchar2 (32) default ''; v_str3 varchar2 (32);
Environment Description:
The oracle11gr2 database is installed on the Virtual Machine (centos5.5 64bit). The database name is orcl and the user is test. Virtual Machine IP Address192.168.128.101
No database is installed on the Physical Machine
I. SQL tuning class
1: List several table Connection Methods2: How to view SQL Execution plans without using third-party tools3: How to Use CBO? What is the difference between CBO and rule?4: how to locate important (resource-consuming) SQL
1. What is an oracle control file?
Record the physical structure of the database, which is an essential binary file for Oracle loading or recovery.
What is a control file?
2. Information in the Oracle Control File
Control File ContentDatabase Name,
After installing oracle on Linux, you need to adjust system parameters to improve Oracle performance.
Several parameter descriptions:Kernel. shmmax-the maximum size of the shared memory segment (in bytes) that can be used by a single process.
Similarities and differences between truncate, delete, and drop
Note: The delete statement is a delete statement without the WHERE clause.
Similarities:
Truncate, delete without WHERE clause, and drop both delete table data.
Differences:
1. truncate
// The const_cast Delimiter is the const or volatile qualifier used to remove the variable.
#include using namespace std;void func(const int &a){int b = const_cast(a);b++;cout
Result output:
7
6
Because B defined in func is an independent
About subplans about sub-plans
Instead of referencing a resource consumption group, one resource plan directive can refer to another resource plan. In this case, the plan is called a sub-plan. The sub-plan itself can allocate resources to the
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.