答案 0 :(得分:2)
import tkinter.messagebox # just imported tkinter.messagebox - right???
def warning():
tkinter.messagebox.showwarning("Warning", "A Warning-box!") # simply
warning() # executes warning()
然后
UPDATE Users
SET Role =
CASE
WHEN Role = 'Admin' THEN 1
WHEN Role = 'User' THEN 0
END