Comparison between MYSQL and MSSQL and MYSQLMSSQL
Recently, I was modifying the MSSQL statements related to a company's product to statements that can be executed on MYSQL.
L Advantage Analysis:
MYSQL is short, easy to use, easy to use, and free
1,access Database Introduction relational database management system, Microsoft's small database advantages: improve speed, reduce the amount of code, avoid the use of process call defects: data is too large, performance is degraded, database brush
Oracle statement code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Create or replace view qua. view_lose_check_request_cut
Select M. Wo, M. Lot, M. mat_id, M. routing_id, M. tech_id, M.
1. When installing SQL or SP patches, the system prompts for a pending installation operation, which requires a workaround to restart:Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager in the registry, and delete the
Mathematical functions
Serial number
function function
SQL Server usage
Oracle usage
1
Absolute
Select ABS ( -1) value
Select ABS ( -1) value from dual
2
Rounding (Large)
In MSSQL If you combine the results of two or more queries into a single result set that contains all the rows of all the queries in a federated query, the common method is as follows:
I. Use the Union or UNION ALL statement
1. The difference
MS SQL Server Query optimization methodThere are many reasons for the slow speed of queries, which are common1, no indexes, or no indexes (this is the most common problem with query slowness, is the flaw in programming)2, I/o throughput is small,
Note: Sunday is the first day of the week, not the last day of the week () minus one day, such as dateadd (day,-1, getDate () This week: select * fromtablewheredatediff (week, C_CALLTIME, getdat
Note: Sunday is the first day of the week, not the
Really do not want to write, but still have to force themselves to learn a little every day, write a little. I didn't play tonight, and when I got home, I was called on the line to deal with things, take some time to learn some Oracle1, character
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.