数据太长Mysql和python
|
MYSQL错误,从android向python发送GPS纬度和经度时
enter code here
def pacman(self):
while True:
while True:
try:
x1=self.sockfd.recv(2048)
print x1
print \"\\n hi\"
conn.begin()
x.execute(\"UPDATE location SET x=\'%s\'\"%(x1))
print \"hi\"
y1=self.sockfd.recv(2048)
print y1
x.execute(\"UPDATE location SET y=\'%s\'\"%(y1))
conn.commit()
except ValueError:
self.sockfd.send(\"\\nError202:That is not a valid Car Number\")
DataError:(1406,\“数据太长,导致第1行的列'y \'\”)//数据出现
31.3363510530.0845932431.3363510530.0845932431.33635105 !!
尽管并非每次都这样做,但应该怎么做?
没有找到相关结果
已邀请:
2 个回复
贸会
似乎是
错误
辩谷变充