简体   繁体   中英

I select all columns by some condition I want only those column will select which have some data in it

I have a table with 46 columns in my database, In these 46 columns 25 or 26 are mostly empty. when I select all columns by some condition I want only those column will select which have some data in it

You have to specify exactly which columns you wan't displayed. There is no simple solution where mysql will display only columns that have data in them while using SELECT * FROM TABLE;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM