history_info.py 246 B

12345678910111213
  1. """
  2. @author: luojunhui
  3. """
  4. from applications.odps_server import PyODPS
  5. odps_function = PyODPS()
  6. sql = "select * from loghubods.lastday_return where dt = '20230306' limit 100;"
  7. data = odps_function.select(sql)
  8. for line in data:
  9. print(line)