我从光谱中获取一个字段作为“文件名Pro_180913_171842”。 尝试了
之类的sql函数import tkinter as tk
class Menu(tk.Menu):
def __init__(self, controller):
super().__init__()
self.controller = controller
controller.config(menu=self)
file_menu = tk.Menu(self, tearoff=0)
self.add_cascade(label="File", menu=file_menu)
file_menu.add_command(label="Exit", command=self.handle_exit)
def handle_exit(self):
# What can I do here that will be handled by
# protocol "WM_DELETE_WINDOW" of the main class?
# All I can find is destroy() and quit()
# But both of these do not get handled by "WM_DELETE_WINDOW".
def start(controller):
Menu(controller)
但它仅返回空行!
答案 0 :(得分:0)
您的字段没有日期部分,因此,除非我们添加日期信息,否则将其与完整的时间戳进行比较是没有意义的。如果您只打算比较时间,请尝试以下方法:
SELECT fields
FROM spectrum.ex
WHERE SPLIT_PART('filename Pro_180913_171842', '_', 2) > '151354';