0
如何在HyperFileSQL
中創建同義詞?hyperfilesql中的同義詞和保留的關鍵字用戶
我有一張名爲USER
的表格,我無法通過ODBC
訪問它。我不能重命名它,所以我想爲它創建一個同義詞。我該怎麼做呢?
如何在HyperFileSQL
中創建同義詞?hyperfilesql中的同義詞和保留的關鍵字用戶
我有一張名爲USER
的表格,我無法通過ODBC
訪問它。我不能重命名它,所以我想爲它創建一個同義詞。我該怎麼做呢?
要創建同義詞,使用此功能HAlias()
。
// Create an alias for the ORDERS file
// (Syntax available from version 19)
Orders2013 is Data Source <description=Orders>
IF HAlias(Orders, Orders2013) = True THEN
// ORDERS2013 can now be used in the processes
// It behaves the same way as
// the ORDERS file described in the analysis.
// Modify the directory
HChangeDir(Orders2013, "D:\SalesMgt\Archive2013")
// Modify the name
HChangeName(Orders2013, "Orders")
HOpen(Orders2013)
...
// Processes on the Orders2013 file
...
END
// Cancel the alias
HCancelAlias(Orders)
我只想訪問USER表。由於USER是關鍵字,我無法通過ODBC訪問數據庫。我安裝了ODBC,它適用於其他表... – nawfal
嘗試將其封裝在[]中。這可能會讓你逃脫。 – Brody