Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将sql server数据库转换为mysql,需要更改表结构和列名吗?_Mysql_Sql Server_Database - Fatal编程技术网

将sql server数据库转换为mysql,需要更改表结构和列名吗?

将sql server数据库转换为mysql,需要更改表结构和列名吗?,mysql,sql-server,database,Mysql,Sql Server,Database,我需要实现: 这方面的类似要求: 更改表结构和列名,例如: 来源(sql server): 表A id studentName -------------- 1 John 2 Jim 表B id teacherName -------------- 1 Kate 2 Mat 目的地(mysql): 表C//表A、B合并在一起 id name // here the column name changed ------- 1 John 2 Jim 3 Kat

我需要实现:

  • 这方面的类似要求:

  • 更改表结构和列名,例如:

  • 来源(sql server):

    表A

    id studentName
    --------------    
    1  John    
    2  Jim
    
    表B

    id teacherName
    --------------
    1  Kate
    2  Mat
    
    目的地(mysql):

    表C//表A、B合并在一起

    id name    // here the column name changed
    -------
    1  John
    2  Jim
    3  Kate
    4  Mat
    

    @萨什凯洛联盟?对不起,我是这方面的新手,你能提供更多的细节吗?谢谢。如果你改变了结构和数据,它很难被称为“转换”…你的
    id
    s呢?您不能像示例中那样合并这些,它们将被复制。您可以重新生成这些表,但是任何带有外键的相关表都将指向错误的记录。