Discuss / Python / 有些不懂的地方,请指教

有些不懂的地方,请指教

Topic source

承影555

#1 Created at ... [Delete] [Delete and Lock User]
1。update `%s` set %s where `%s`=?' % (tableName, ', '.join(map(lambda f: '`%s`=?' % (mappings.get(f).name or f), fields)), primaryKey)z
这句话该怎么理解
2,请问``是什么意思?

完美佩恩

#2 Created at ... [Delete] [Delete and Lock User]

`` 就是1前面那个波浪线 直接按产生的啊。这里是为了设置字段的时候 set ·tabcolu·=‘xxx’ 这个符号是mysql中的 不加有时候会报错。


  • 1

Reply