我有一个数据源,用于从Server进行大文本检索。它唯一的高级设置覆盖是Large Text Buffer : 640000。
当启用Sandbox安全性时,我会得到以下错误:
Connection verification failed for data source: Scorecard3_large
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]The requested instance is either invalid or not running.
The root
我有一个非常大的数据库,我正在使用,我需要知道如何选择一个大的id集,其中没有任何真正的模式。这是我到目前为止的代码片段:
longIdList = [1, 3, 5 ,8 ....................................]
for id in longIdList
sql = "select * from Table where id = %s" %id
result = cursor.execute(sql)
print result.fetchone()
我在想,肯定有更快的方法...我的意思是,我的脚本需要搜索超过400万
我有一个非常大的数据库,我想拆分成表。我希望当我运行distinct时,它会为每个不同的名称创建一个表。表的名称将是其中一个字段中的数据。
例如:
A --------- Data 1
A --------- Data 2
B --------- Data 3
B --------- Data 4
将产生两个表,一个名为A,另一个名为B。然后,整行数据将被复制到该字段中。
select distinct [name] from [maintable]
-make table for each name
-select [name] from [main