Check out example codes for "mariadb alter table add column if not exists example". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE tableName ADD COLUMN IF NOT EXISTS colName INT;

Learn ReactJs, React Native from akashmittal.com