No.1 SQL语句
要看你是什么数据库No.2 TDataSet.FieldList属性
{ 如: }
if Table1.FieldList.IndexOf('Name') < 0 then
  { TODO : 不存在 }