hyperfilesql和reserved keyword user中的同义词

时间:2016-02-16 15:53:59

标签: database synonym tablename hyperfilesql

如何在getElementsByName中创建同义词?

我有一个名为HyperFileSQL的表格,我无法通过USER访问它。我无法重命名它,所以我想为它创建一个同义词。我该怎么做?

1 个答案:

答案 0 :(得分: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)