简体   繁体   English

T-SQL和MySQL的SELECT语法之间的区别

[英]Difference between T-SQL and MySQL's SELECT syntax

So I wanted to make an online judge system on MySql, which will run on NodeJs and using ReactJs as frontend library. 因此,我想在MySql上构建一个在线判断系统,该系统将在NodeJs上运行并将ReactJs用作前端库。

In short term, Online judge system is used to grade and give feedback to uploaded script, depends on whether it returns an error, correct, time-out, or else. 短期而言,在线判断系统用于对上传的脚本进行评分并提供反馈,具体取决于它是否返回错误,更正,超时或其他。 I designed this system to replace the old method of assignment correction which still manual. 我设计了这个系统,以取代仍然是手动的旧的作业校正方法。

The problem is, the old system is based on Sql server's TSQL, and I am not really sure whether TSQL is supported in NodeJS nor whether it actually had any difference with MySQL syntax, and actually didn't have a plan to use it at all as the base of my new system. 问题是,旧系统是基于Sql Server的TSQL,我不确定是不是在NodeJS中支持TSQL,也不确定与MySQL语法是否有任何区别,也没有计划使用它作为我新系统的基础。 (I planned to stick with MySQL as the base of the new online judge system) (我计划坚持使用MySQL作为新的在线裁判系统的基础)

What I wanted to ask is, is there any difference between T-SQL and MySQL SELECT syntax? 我想问的是,T-SQL和MySQL SELECT语法之间有什么区别吗?

For example, I know that 例如,我知道

SELECT * FROM <table_name>

return the same result in both TSQL and MySQL. 在TSQL和MySQL中返回相同的结果。 But what if there's more complex query that includes JOIN or ORDER/GROUP query. 但是,如果有更复杂的查询,包括JOIN或ORDER / GROUP查询,该怎么办?

Any help will be appreciated 任何帮助将不胜感激

Node.js does support SQL Server eg mssql package . Node.js确实支持SQL Server,例如mssql软件包

Both DBMS products support a common subset of ANSI/ISO standard SQL and have proprietary extensions as well. 两种DBMS产品都支持ANSI / ISO标准SQL的通用子集,并且还具有专有的扩展。 The effort to convert the app to MySQL will depend on what proprietary features are used as well as ANSI SQL constructs used that not yet implemented in MySQL. 将应用程序转换为MySQL的工作将取决于所使用的专有功能以及尚未在MySQL中实现的ANSI SQL构造。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM