1. Create a tableCreate table cj_jt_nscpdmdy(ID VARCHAR2 (40) not null primary key,CPBH VARCHAR2 (80) not null,Nsbh VARCHAR2 (80) not null,BZ VARCHAR2 (80));
2. Test Data
Insert into cj_jt_nscpdmdy values (1,001,001, 'enabled ');Insert into
How does Java IDE (Eclipse) connect to the mysql database?
1. Download mysql-connector-java from www.mysql.com );
2. Add an external jar package in the Eclipse project, that is, the jar file in the mysql-connector-java decompression package, such
1. the mysql-client package needs to be installed on the client. The library files we need after installation are complete;
2. Install the mysql-dev package. After installation, we need the mysql. h file;
3. As a client, you only need to install
For example, to back up an existing mysql database named linux, run the mysqldump command.The command format is as follows:[Root @ bkjia root] # mysqldump-u root-p linux>/root/linux. SQLEnter password: Enter the Database password here
Through the
1. First, add the scheduled task to the list. The system scans the task list every minute to check whether the task is to be executed at the current time.
/etc/crontab:
# m h dom mon dow user command
0 1 * * * root /home/fzw/
This problem occurs when Oracle is installed on Linux for the first time. Previously, when installing Oracle on Linux, The RedHat series Linux was generally used. During the installation process, a lot of installation work needs to be done, such as
SQL> create tablespace test datafile 'y: \ test. dbf' size 20 M;
The name of the actually created tablespace is TEST.
Execute the following three commands to delete the tablespace:
SQL> drop tablespace test;
The tablespace has been deleted.
SQL>
Dual is a virtual table used to form the select syntax rule. Oracle ensures that there will always be only one record in dual. We can use it to do a lot of things, as shown below:
1. view the current user. You can execute the following statement in
In Oracle, it is a Long type. How to obtain, insert, and modify it in Java:
Reader reader = rs can be used online. getCharacterStream (1); get Long data, but I use ds directly. no error is reported when getString () is obtained, and the database is 9
Execute the following method immediately, and pass the current variable in with USING.
EXECUTE IMMEDIATE'Begin'Work_Order_Req_Line_Util_API.Create_Po_Allowed (: requisition _,: line_no _,: release_no _);END ;'USING requisition_no _, line_no _,
Problem:Org. postgresql. util. PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.Solution: Edit/var/lib/pgsql/data/postgresql. conf fileChange# Listen_addresses = '
The MEMORY_TARGET parameter was introduced in Oracle 11g, mainly used to control Oracle's use of system memory. For the first time, the SGA and PGA were integrated for automatic management. Once the MEMORY_TARGET parameter value is set, Oracle will
Because a large amount of data exists in text files and needs to be imported to Oracle, we are lucky to have access to the arms SqlLoader.
Run the sqlldr command on the host where Oracle is installed.Sqlldr
You will see instructions on this tool:
Problem description:
I have installed the Oracle 11g R2 Database Service on my PC. I cannot connect to the database through PL/SQL. The following describes the installation environment.
PC operating system: Window7 (64bit)
Oracle Server version:
The experiment is divided into two steps:1. LMT local management of tablespaces, ASSM automatic segment management when the data file structure analysis Oracle 11G: 0 operating system block, 1-2 is the file header, 3-127 is the bitmap information.
A foreground SQL statement is simplified as follows:SELECT products_name, products_viewed FROM 'products _ description'Order by products_viewed DESC, products_name LIMIT 0, 20;
This statement often appears in large batches in slow logs!
A
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