I need to execute an insert query for multiple rows in which the first column is a numeric and identical value, and the second value is retrieved from another table.
sort of
insert into the table (33, select col2 from another_table);
can this be done with a single statement?
like this
insert into table select 33, col2 from another_table;
If you want to specify columns in your insert request, you should use this syntax:
INSERT INTO table (id, col2_name) (SELECT 33, col2 FROM another_table);
Source: https://habr.com/ru/post/1747871/More articles:How to convert Ada.Real_TIme.Time to string? - adaxsl: for-each is not supported in this context - xmlHow to disable location services? - objective-cКак использовать регулярное выражение для удаления [a-z]/[a-z]/из строки? - javascriptChoosing a font size for a web form - ms-accessApplication-based error logging / handling? - phpJava - class type from inside a static initialization block - javaCan .NET AppDomains do this? - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1747875/blackberry-push-notifications-is-tomcat-mysql-really-needed&usg=ALkJrhjUPSFNvVKURyYCXroB54oSC-PkkgjQuery animate () - multiple selectors and variables, a unique call to animate () - jqueryAll Articles