Académique Documents
Professionnel Documents
Culture Documents
1) MSSQL support UDD(User Defined DataTypes), MYSQL does not support UDD
3) Use prefix @symbol for variable in MSSQL, whereas in MYSQL remove @symbol.
e.g. declare @test int -- MSSQL Syntax
declare test int; --MYSQL Syntax
4) End marker(;) not required in MSSQL but in MYSQL all statement end with
marker (;)
5) In MSSQL use SELECT getdate() for getting today's date , in MYSQL use SELECT
now()
6) All queries should be available in Begin tran and Commit(Rollback) tran loop in
MSSQL,
whereas MYSQL Start transaction and commit(Rollback) transaction.
7) Getting Top most record in MSSQL, Use SELECT TOP1 from Table_Name where
In MYSQl SELECT from Table_Name where limit 1;
8) For viewing table information use Sp_help Table_name in MSSQL, but in MYSQL
use show table_name;
Regards,
Kavitha N