小编mgr*_*oat的帖子

Access ODBC无法从超过255列的SQL表中提取

我有一个数据库,我试图从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.我究竟做错了什么?

sql ms-access odbc ms-access-2013

5
推荐指数
1
解决办法
7823
查看次数

Tkinter simpledialog 框在使用 Python3 的 Windows 10 中没有获得焦点

在下面的代码中,第一个对话框立即获得焦点,因此用户只需键入答案并按 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)

python tkinter simpledialog

4
推荐指数
1
解决办法
1173
查看次数

标签 统计

ms-access ×1

ms-access-2013 ×1

odbc ×1

python ×1

simpledialog ×1

sql ×1

tkinter ×1