我正在使用 mysql5.6 工作台。我有一个架构和这个架构中的许多表。现在我需要在我需要脚本的其他系统上获取完整的模式。我在没有运行脚本的情况下创建了所有表,所以我没有脚本。但现在我想从工作台生成脚本,以便我可以在另一个系统上运行它。
请建议我如何从 mysql workbench 5.2CE 获取此脚本。
还请帮助我以 .sql 文件格式脚本将其导出。
function createList(arrunique, arrayout) {
for (i = 0; i < arrayout[0].length; i++) {
var divIdC = i;
var divIdT = i + 10;
$('#tb').append('<select name="combo" style="float:left; width:100px;" id="' + divIdC + '" onchange="getComboVal(this,' + divIdC + ')"></select>');
$('#tb').append('<input type="text" name = "textBox" style= "width:100px;" id="' + divIdT + '" onkeyup="validate(this,"' + divIdT + '") value="0">');
var select = document.getElementById(divIdC);
select.options[select.options.length] = new Option("Select " + arrunique[i][0]);
for (j = 1; j < arrunique[i].length; j++) {
select.options[select.options.length] = new Option(arrunique[i][j]);
}; …Run Code Online (Sandbox Code Playgroud)