Python3 psycopg2 test timestamp value before query

前端 未结 0 430
渐次进展
渐次进展 2020-11-28 22:09

With a Python string value like 2020-10-26T14:33:00, is there a way to test if Postgresql will accept it before doing a psycopg2 query to insert in DB ?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题