SHARE
TWEET

Displaying data via user generated SQL at runtime

a guest Mar 22nd, 2012 19 Never
  1. var db = Database.Open("bakery");
  2. var p = db.Query("SELECT * FROM PRODUCTS"); // This returns a list of products
  3.        
  4. var db = Database.Open("TDL");
  5. var selectQueryString = "SELECT * FROM Articles WHERE slug = @0";
  6. var show =  db.QuerySingle(selectQueryString, slug);
RAW Paste Data
Top