现一个表中有很多字段,但我不想要其中某一个字段,手打出来字段太多,不方便。

 

SELECT
	GROUP_CONCAT( column_name SEPARATOR ',' ) 
FROM
	information_schema.COLUMNS 
WHERE
	column_name <> '你不想要的字段名' 
	AND table_name = '表名' 
GROUP BY
	table_name

  

相关文章:

  • 2021-11-03
  • 2022-02-04
  • 2022-12-23
  • 2021-05-23
  • 2021-11-03
  • 2021-05-09
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2020-03-10
  • 2021-12-23
  • 2022-01-30
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案