Is it possible ?
INSERT INTO tblPeople (id, group, company) VALUES (1, \'myGroup\', IF($company = \'\') BEGIN \'no company\' ELSE \'myCompany\
Try this:
INSERT INTO tblPeople (id, group, company)
select 1, 'myGroup',
case
when @company is null or @company = '' then 'no company'
else 'myCompany'
END as company
/*from tab --<-- optional*/
Probably not, but
INSERT INTO tblPeople (id, [group], company)
Select 1, 'myGroup', Case When @Company = '' then 'no company' Else 'my company' End
Should be a goer