Home  >  Q&A  >  body text

python mysql查询数据、mysql中数据类型为time、python查出来是timedelta类型是什么原因

数据库中数据的类型为time,为什么用python查询数据库查询出来的数据却是timedelta类型?

ringa_leeringa_lee2741 days ago856

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:46:08

    This is the internal type conversion logic of the MySQLdb library. You can refer to the MySQLdb code (conversion.py+165).

    reply
    0
  • Cancelreply