Example #1
0
def create_table_from_tmpl(tmpl_name, kws):
    strsql = sql.get_sql("tmpl_create_table_" + tmpl_name)
    for k in kws:
        strsql = strsql.replace("%s", k, 1)
    sql.exec_updsql(strsql)
Example #2
0
def create_view(view_name):
    strsql = sql.get_sql("create_view_" + view_name)
    sql.exec_updsql(strsql)
Example #3
0
def create_table(table_name):
    strsql = sql.get_sql("create_table_" + table_name)
    sql.exec_updsql(strsql)