SELECT count(1) FROM  表名      返回8(表的数字)

 

如果用flask sqlalchemy:

row_totlal = db.engine.execute(text("SELECT count(1) FROM  表名")).fetchone()        #(8L,)

想要得到8 可以返回row_totlal[0]                                   #8

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-01-10
猜你喜欢
  • 2021-07-28
  • 2021-08-24
  • 2022-01-09
  • 2021-06-06
  • 2022-12-23
  • 2021-05-21
相关资源
相似解决方案