Search notes:

SAS: proc sql - insert

insert into … set

With the set clause, it's possible to specify an alternative order of columns in an insert statement:
proc sql;

  create table tq84_tab (
     col_1   char(10),
     col_2   num,
     col_3   char(10)
  );


  insert into tq84_tab
  set
     col_3 = 'three',
     col_2 =  2     ,
     col_1 = 'one'  ;

  select * from tq84_tab;

quit;
Github repository about-SAS, path: /programming/proc/sql/insert/set.sas

See also

proc sql

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1745554229, '13.58.157.160', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/proc/sql/insert(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78