Esempio n. 1
0
def expectcodedel(host, user, password, database, port, sql):
    mysql.connectdb(host, database, user, password, port)
    result = mysql.deletedb1(sql)
    return result
    mysql.closeconnect()
Esempio n. 2
0
def expectcode(host, user, password, database, port, sql):
    mysql.connectdb(host, database, user, password, port)
    result = mysql.selete(sql)
    return result
    mysql.closeconnect()
    return result[0][0]