pymsql基本用法

MySQL知识点补充

1、去重 distinct

select distinct name,age from t1;
# 针对查找出来的结果整行(记录)进行去重,也就是相同名字只保存一个

注意点:distinct 必须放在查询列的第一个(放后面就会报错)

2、保存操作记录 tee

pymysql包的基本用法

猜你喜欢

转载自www.cnblogs.com/hesujian/p/11025545.html