0

如何在 中创建同义词HyperFileSQL

我有一个名为的表USER,我无法通过ODBC. 我不能重命名它,所以我想为它创建一个同义词。我该怎么做呢?

4

1 回答 1

0

要创建同义词,请使用此函数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)
于 2016-05-16T15:39:57.043 回答