我有一个数据库,我试图从Access使用ODBC查询.我需要读取的表有304列,我只能在查询生成器中看到前255个.我在其他地方读过,解决方案是手工编写SQL查询而不是依赖于Builder,所以我尝试了这个查询:
SELECT [Field1], [Field304]
FROM [ODBC;DRIVER=SQL Server;UID=USERNAME;SERVER=ServerAddress].[TabelName];
Run Code Online (Sandbox Code Playgroud)
这个查询就像我期望的那样返回Field1,但仍然不会得到Field304.我究竟做错了什么?
在下面的代码中,第一个对话框立即获得焦点,因此用户只需键入答案并按 Enter。在第二个中,在 Windows 中运行时似乎不会发生这种情况。运行 Raspbian 9,两个窗口在打开时都会获得焦点。
有什么办法可以让两个窗口在 Windows 中打开时都获得焦点?
import tkinter as tk
from tkinter import simpledialog
root = tk.Tk()
root.withdraw()
answer1 = simpledialog.askstring("Test1","This one gets focus when it opens",parent=root)
answer2 = simpledialog.askstring("Test2","This one doesn't",parent=root)
Run Code Online (Sandbox Code Playgroud)