2023-08-22, 12:42 PM
(2023-08-22, 12:36 PM)lost puppy Wrote: No, that works fine and returns a count of zero << if it is meant to do that??
It is meant to return a count of one given that the column now exists.
And I was expecting it to generate the same error given that the only change we made was to delete
INTO @exist
.Let's put that back in again and see whether we get an error this time:
SELECT COUNT(*)
INTO @exist
FROM information_schema.columns
WHERE table_schema = database()
AND
column_name = 'tyl_tnumtyls'
AND
table_name = 'YOURPREFIX_threads';