Home > Back-end > How to define a global variable by means of the initial load data
How to define a global variable by means of the initial load data
Time:03-06
Now I define # define ROWS 20 The int data (ROWS);
Now hope that the value of the ROWS when I was in the program initialization through database load value, this can be achieved, or have any good way to achieve similar functionality?
CodePudding user response:
Create a database object Establish a database connection with database objects Create a recordset object Performs a select statement on the recordset object to extract the numeric value corresponding to field of 20 rows of 20 is stored in the data array Destroy the recordset object Disconnect from the database Destruction of database objects