The current summary of the statement, in view of the data connection is very useful, after writing the program while testing the code side to see the release of database connections to help optimize the analysis of a robust system program.1.SQL code1
Grammar1. Build a tableCREATE TABLE Table name (Column name data type,......);2, delete table:drop table name;3. Add column:ALTER TABLE name Add (column name data type);4. Modify column:ALTER TABLE name rename column name to column name;5, modify
There are many application projects, just start with MySQL database can basically achieve a variety of functional requirements, with the increase in application users, data volume increases, MySQL gradually appeared overwhelmed: the connection is
Sequence SEQUENCEis also one of the database objects that generates some column numbers according to the specified rules.A sequence is usually used to provide a value for a table's primary key.Primary key: Usually each table has a primary key field,
Newly installed oracle12c, the new CDB and PDB users how to log on has been confused, after a night of search, finally resolved.
Sqlplus/nolog-conn/as SYSDBA Login to Oracle
Switch session to PDB under ALTER session set CONTAINER=PDBORCL
(This article original, quote please specify source--zhangjieatbky)
Scenario: For example, to convert an ID value stored in a field, such as a to a text display, such as basketball, soccer, volleyball
Create two tables
1 CreateA1 (ID
FUNCTION IsDate(DatestrVARCHAR2, formatVARCHAR2)RETURN Number isp_date date;BEGIN SELECTto_date (DATESTR, format) intop_date fromDUAL; RETURN 1; EXCEPTION whenOTHERS Then RETURN 0;END;When you have a multi-conditional fuzzy
1.Select query data in the tableSelect * from Stu;---Query the stu table for all data, * represents all2.dual , pseudo-table, the data to be queried does not exist in any table when usedselect sysdate from dual;----Query the current time of the
Ora-01034:oracle not availableora-27101:shared memory realm does not exist process id:0 session id:0 serial number: 0 Because of this little mistake, tossing me for a few days, special record as follows 。 Internet search for the next solution, as
Blob refers to the binary large object is the English binary Large objects written;CLOB refers to a large character object that is written in English character Large object.So both types are designed to store large amounts of data, where blobs are
Recent work has encountered a performance-related problem, broadly described: The process of bulk task execution caused the database SQL execution time is too long, after the view is due to the bulk task full database connection pool caused, as to
Sql_trace is a powerful auxiliary diagnostic tool provided by Oracle for SQL tracing. In the diagnosis and resolution of daily database problems, Sql_trace is a very common method. 1. Enter the host of the database with Putty or other host tools.2.
Recently asked to develop when the data table changes when the need to call the Web interface, the Internet to find a number of articles to look at it is not very good, but also according to other people's ideas to achieve the next, the feeling is
------------------------------------------type conversion function------------------------------------------------Automatic type conversion, ORACLE can automatically change the following according to the specific situation:* String to Numeric*
Query scripts that Oracle DBA must master:1: Querying the size of Oracle standard data blocks by V$parameter data fields1 ----Query the size of the Oracle standard data block by v$parameter the data dictionary. 2[Email protected]> startup3ORACLE
Linux installed the database, after the installation can be used, today, the launch will not be able to use, prompted Oracle not available, and later find information, it is said that the Oracle service is not open. The problem can be solved in the
Oracle function summary, oracle Summary
Among the various databases that are currently popular, why oracle can be listed at the beginning and the birth of oracle has brought a storm to the use of the whole database, what functions and advantages
Create and use two temporary tables for Oracle databases.
In addition to permanent tables, the ORACLE database can also create temporary tables. These temporary tables are used to save the data of a SESSION or the data required in a transaction.
Orcale uses the creation date for sorting, and obtains the fixed number of items after sorting by page each time, orcale date sorting
Requirements:
A paging list using the mybatis paging plug-in. You must add a new data entry or modify a new data
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