微慑信息网

mysql的distinct数据插入 – – vulsee.com

mysql想把乌云漏洞库的漏洞类型单独入表,无奈怎么都语法错误,如:

insert into  table (types) values( select distinct(type) from bugs)

 

insert into table (select distinct(type) from bugs)

最后尝试:

insert into types_copy (types_copy.bugtype) (SELECT DISTINCT(bugs.wybug_type) FROM bugs)

OK

 

本文标题:mysql的distinct数据插入 – – vulsee.com
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2021/1210_15881.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » mysql的distinct数据插入 – – vulsee.com
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们