Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
在远程数据库中注册供命名列参数使用的列信息。
ml_add_column ( 'version', 'table', 'column', 'type' )
version
VARCHAR(128)。版本名称。
table
VARCHAR(128)。表名。
column
VARCHAR(128)。列名称。
type
VARCHAR(128)。留作将来使用。设为空值。
此过程使用远程数据库中列的相关信息填充 ml_column MobiLink 系统表。该信息由命名行参数使用。
必须按照列在远程数据库表中的存在顺序来执行 ml_add_column 调用。否则可能导致数据不正确。
如果同步客户端不发送列名,则需要运行此系统过程。缺省情况下,版本 12 及更高版本客户端会发送列名,所以多数部署中不需要 ml_add_column。ml_add_column 名称始终替换客户端名称。
要删除给定脚本版本中表名的所有条目,请将列名设置为空。
以下存储过程调用会以脚本版本 Version1 的 MyTable 中的 col1 填充 ml_column MobiLink 系统表。通过此调用,可以在同步客户端不发送列名时,在 Version1 脚本版本 MyTable1 的表脚本内使用命名行参数 r.col1 和 o.col1(版本 12 之前的客户端在缺省设置下会执行该操作)。
CALL ml_add_column( 'Version1', 'MyTable1', 'col1', NULL )
以下存储过程调用会删除脚本版本 Version1 中 MyTable1 的 ml_column MobiLink 系统表内的所有条目:
CALL ml_add_column( 'Version1', 'MyTable1', NULL, NULL )