SQL support / Static SQL statements |
MAIN DEFINE c_num INTEGER DEFINE c_name CHAR(10) DATABASE stock SELECT cust_name INTO c_name FROM customer WHERE cust_num = c_num END MAIN
MAIN DEFINE cust_name CHAR(10) DEFINE cnt INTEGER DATABASE stock SELECT COUNT(*) INTO cnt FROM customer WHERE @cust_name = cust_name END MAIN
The @ sign will not figure in the resulting SQL statement stored in the .42m compiled module.