我一直在使用Oracle来做这件事,没有任何问题,但后来我不得不将它全部切换到使用MySQL,并且在初始化期间看到了这个错误:
org.springframework.dao.DataAccessResourceFailureException: Could not obtain sequence value; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException在调试之后,我捕获了它试图执行以获得<em
我在MySQL数据库中有一个非常大的表,其中有一个列名为exa_id,该表的行数超过10,000,000。我希望通过中的pandas.read_sql语句随机高效地选择数据中的1000个。我怎么写代码?
SQL select ext_id from table_name order by rand() limit 1000执行得非常糟糕,我想换一种方式。,而不是自动递增序列。