Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮助我使用 odbc 适配器从数据库中加载数组值,而不使用循环语句。
谢谢,
索姆
由于您没有指定语言,以下是 Python 中使用 mxODBC 的示例:
import mx.ODBC.unixODBC as mx db = mx.DriverConnect('DSN=[your DSN here]') c = db.cursor() results = c.execute("SELECT * from tableName").fetchall()
如果您有更多详细信息 - 例如特定语言,您可能会得到更接近您想要的答案。