我在用VB时曾遇到过这种事情,比较难办,我是这样做的:
从tab1中读出的结果都用char保存,同时保存其数据类型,
这样在向tab2写入时直接把char转换为传入的类型即可.
希望对你有帮助.

解决方案 »

  1.   

    如果是sql server的话,可以试试“事务发布”,应该可以解决的,而且不用写程序。
      

  2.   

    程序是一定要写的。没有更好的方法只好象lanyucsdn说的做了。
    只是SQL那么多的类型,每个都的做个判断也太麻烦了。
    theng:用事务发布?我是不同的服务器呢?也可以吗?
      

  3.   

    Normally, you could try the synchronization functionalities of DBMS. As far as I know, deferent DBMS is not the problem when using synchronization function. 
    Check the manual of your DBMS wether it can do it or not.
    if the answer to this question is yes, just create the same relation in two DBMS, and the update process could be established merely by DBMS.