Simple remote backup solution for Linux server databases (MySQL and ORACLE) bitsCN.com
Simple remote backup solution for Linux server databases (MySQL and ORACLE)
Simple remote backup solution for MySQL databases on Linux servers
First, let's briefly describe:
1. execute
Mysql and oracle batch processing run SQL file and oracle import dmp file mysql batch processing run SQL: www.2cto.com net stop mysql net start mysql echo Wscript. sleep (3000)> sleep. vbs start/w wscript.exe sleep. vbs del/Q slee
Differences between oracle and SQL (common functions) (3) ORACLE functions
BitsCN.com
Rn S: select patindex ('% d % q %', 'sdsfasdqe ') value O: oracle not found, however, instr can use the fourth parameter to control the number of occurrences. select INSTR ('sdsfasdqe ', 'SD', 1, 2) value from dual returns 6
24. substring S: select substring ('abcd',) value O: s
When Oracle and MySQL delete fields, we do not know how many people know clearly. in Oracle, if a composite index is used, assume that the index (a, B, c) has three fields, how does Oracle handle a field deleted (including unused. Similarly, what should Oracle do if it is a
BEIJING, May 28, 2014 – Oracle announces the launch of MySQL Fabric to meet today's demand for web and cloud applications. MySQL fabric is an integrated system that simplifies the management of MySQL database groups. The product provides high availability through fault detection and failover capabilities, while scalabi
How to Create Auto-incrementing fields in MySQLamp; Oracle how to create auto-incrementing fields in MySQL Oracle
Create an auto-increment field in MySQL:
Create table article // create a table first.
(
Id int primary key auto_increment, // set this field to auto increment.
Title varchar (255)
);
Insert into article v
For comparison of some simple commands of Oracle and mysql, refer to [group chart] Comparison of some simple commands of Oracle and mysql.
Oracle mysql vs. Personal Oracle7 Release 7.3.4.0.0 m
The following is a simple example of how to back up and restore each Database. For more details about the parameters and configurations, see related information. 1. mysql: parameter description: $ user $ password $ targethost $ port $ charset $ dbname $ table $ filename username and password ip address (this document only provides the simplest usage of backing up and recovering databases, for more detailed parameters and configurations, refer to the r
Condition 1 order by condition 2) c) where numrow> 80 and numrow
5. process long strings
ORACLE processing of long strings also has some special features. The maximum length of a string that can be operated during INSERT and UPDATE is less than or equal to 4000 single bytes. If you want to INSERT a longer string, use the CLOB type for the field to use the DBMS_LOB package that comes with ORACLE. Before in
beyond the length is exceeded, a warning should be given, and the last operation is returned.
5. Processing date fields
Mysql date fields are divided into DATE and TIME. The oracle date field is only DATE, which contains information about the year, month, day, hour, minute, and second. the system TIME of the current database is SYSDATE, accurate to seconds ,, or use a string to
Simulate the showindexfromtable command of MySQL in Oracle
Simulate the show index from table command of MySQL in Oracle
Experiment data initialization:
Create table t as select * from hr. employees ;
Create index inx_t1 on t (employee_id, first_name desc, last_name );
Create index inx_t2 on t (job_id, hir
MySQL implements the ranking syntax such as Oracle or PostgreSQL row_numberover bitsCN. comPostgreSQL and Oracle both provide statements such as row_number () over () to rank corresponding fields, which is very convenient. MySQL does not provide such a syntax.
Table "ytt. t1" Column | Type | Modifiers -------- + ------
Oracle (large website database platform) the corresponding varchar and numeric are available. Of course, the time type of MySQL (the best combination with PHP) is not available in Oracle (large website database platform.
The solution is to replace.
4. Differences Between Automatic growth types.
Oracle (a large-scale w
year, month, day, hour, minute, and second. the system TIME of the current database is SYSDATE, accurate to seconds, or convert the string into a date-type function.
TO_DATE(‘2001-08-01’,’YYYY-MM-DD’)
Year-month-day 24 hours: minute: Second format YYYY-MM-DD HH24: MI: SS TO_DATE () There are many date formats, see oracle doc.
numrow
Statement 2:
Select * from (select rownum as numrow, C. * From (select [field_name,...] from table_name where Condition 1 order by condition 2) c) Where numrow> 80 and numrow
5. process long strings
Oracle processing of long strings also has some special features. The maximum length of a string that can be operated during insert and update is less than or equal to 4000 single bytes. If you want to insert a longer string, use the clob type fo
In addition, some of the differences they have listed are quite meaningful, some may be due to their own MySQL DBA identity, the understanding of Oracle some deviation, some are dine suspicion. But the overall combination of the Baron Schwartz List gives you a general idea of what the similarities and differences between Oracle and
Auto-increment variable settings for Oracle, SQL Server, and MySQL:
1. MySQL's auto-incrementing variables are easy to remember. use the AUTO_INCREMENT keyword. if you know English, it is easy to remember. create a table with auto-incrementing mechanism as follows.
Createtabletest (idintAUTO_INCREMENTPrimarykeynotnull, namevarchar (50 ));
Note: The id must be declared as the primary key. Otherwise, an
:
MYSQL-UABC_F-P ABC (Import database ABC from Abc.sql file)
When prompted for a password, enter the password for the database user name.
3 Method Two direct copies
If the database is large, you can consider using a direct copy method, but the different versions and operating systems may be incompatible between the use of caution.
3.1 Preparation of original documents
Packaged in tar as a file
3.2 Creating an empty database
3.3 Decompression
Unzip in
seconds, or use a string to convert to the date type function TO_DATE ('1970-08-01 ', 'yyyy-MM-DD') year-month-day 24 hours: minute: Second format YYYY-MM-DD HH24: MI: SS TO_DATE () has many date formats. For more information, see oracle doc. convert a datetime field to a string function TO_CHAR ('2017-08-01 ', 'yyyy-MM-DD HH24: MI: ss ')
The mathematical formul
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.