lamp

Usage of static constant for SQL Statements

Published 01 February 10 01:01 PM | Frederick.Chapleau

Embedding SQL statement is sometimes useful. A good practice is to centralize them in a class, using public constants...

public const string SQL_MYTABLE_INSERT = "INSERT MYTABLE (FIELD) VALUES (@FIELDVALUE)";

-f.

Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: