I thought to remember Delphi (he did not touch him for 8 years).
I make a query string:
Form1.ADOQuery1.SQL.Add('INSERT INTO exam_users (`family`, `name`, `patronymic`, `birthdate`, `passport_serial`, `passport_number`,' +'`passport_date`, `organization`, `organization_code`, `programma`, `level`, `civilian_weapons`, `group`, `num_certificate`,' +'`date_certificate`, `date_exam`, `job`, `telephone`, `user_files`, `time_rec`, `date_rec`, `status`, `description`,)' +'VALUES ('+Edit1.text+', '+Edit2.text+', '+Edit3.text+', '+Edit4.text+', '+Edit5.text+', '+Edit6.text+', '+Edit7.text+', '+Edit8.text+',' +''+Edit9.text+', '+Edit10.text+', '+Edit11.text+', '+Edit12.text+', '+Edit13.text+', '+Edit14.text+', '+Edit15.text+', '+Edit16.text+', '+Edit3.text+',' +''+Edit17.text+', '+Edit18.text+', '+Edit19.text+', '+Edit20.text+', '+Edit21.text+', '+Edit22.text+', '+Edit23.text+''); Took from my working PHP code.
Then I read about the parameters, since it’s difficult to see quotes in Delphi and made this option:
Form1.ADOQuery1.SQL.Add('INSERT INTO exam_users (`family`, `name`, `patronymic`, `birthdate`) VALUES (:family, :name, :patronymic, :birthdate'); Form1.ADOQuery1.Parameters.ParamByName('family').Value:= Edit1.text; Form1.ADOQuery1.Parameters.ParamByName('name').Value:= Edit2.text; Form1.ADOQuery1.Parameters.ParamByName('patronymic').Value:= Edit3.text; Form1.ADOQuery1.Parameters.ParamByName('birthdate').Value:= Edit4.text; And still the error (Exception) falls out:

Parameters.ParamByNamepassed - so much more readable and safe code. The limit on the number of characters here seems to be nothing to do with. - Kromsterdescription,)" - there should not be a comma here. - Shallow'$name',style'$name',And after discription, the comma remained from the abbreviation of the'$ip_addresswhen migrating from PHP. (And this is really my omission). And I also see the bracket lost. PS I wrote - Delphi did not open for 8 years. And I am engaged in a whole training center, two portals, and not one programming. You know the crisis ... - I_CaR