FirebirdSQL/最後篇 Firebird 綜合篇/FireBird&SQLServer
出自VFP Wiki
(修訂版本間差異)
Goto-dream (對話 | 貢獻) |
Goto-dream (對話 | 貢獻) (→變數的差異) |
||
第23行: | 第23行: | ||
- | === | + | === 變數使用上的差異 === |
----- | ----- | ||
For example, compare the following code snippets. | For example, compare the following code snippets. | ||
第31行: | 第31行: | ||
DECLARE @my_variable int | DECLARE @my_variable int | ||
SET @my_variable = 5 | SET @my_variable = 5 | ||
+ | |||
/* This is FireBird syntax. */ | /* This is FireBird syntax. */ | ||
CREATE PROCEDURE my_procedure | CREATE PROCEDURE my_procedure | ||
第38行: | 第39行: | ||
my_variable = 5; | my_variable = 5; | ||
END | END | ||
- | |||
- | |||
===參考文章=== | ===參考文章=== | ||
----- | ----- | ||
*[http://vfp.sunyear.com.tw/viewtopic.php?t=1604 Firebird-從SQL Server轉換到FirebirdSQL] | *[http://vfp.sunyear.com.tw/viewtopic.php?t=1604 Firebird-從SQL Server轉換到FirebirdSQL] |
在2005年1月26日 (三) 11:33所做的修訂版本
目錄 |
如何從Microsoft SQL Server轉換到FirebirdSQL
Microsoft SQL Server適用的版本:MS SQL 6.5, MS SQL 7 and MS SQL 2000.
原文來自Marcelo Lopez Ruiz marcelo.lopezruiz@xlnet.com.ar
欄位型態對照表
MSSQL版本 | Data Type | Firebird | MSSQL definition and comments |
---|---|---|---|
6.5 | bigint | INT64 | 8-byte integer type. |
變數使用上的差異
For example, compare the following code snippets. /* This is MS SQL syntax. */ CREATE PROCEDURE my_procedure AS DECLARE @my_variable int SET @my_variable = 5
/* This is FireBird syntax. */ CREATE PROCEDURE my_procedure AS DECLARE VARIABLE my_variable int BEGIN my_variable = 5; END