You shouldn’t really use select * in your code at all as that will mean that the code needs rewriting if you ever need to change the fields in the table. You really ought to list the fields you actually need so that the code will not be affected by adding or deleting any of the other fields in the table that this particular call doesn’t need to reference.
if you want all columns of a table except one, you must list the columns you want
in other words, this –
how to create a query to select all columns except AI column, without quoting all column names in query
is not possible – you must list the columns you want