locked
using query again RRS feed

  • Question

  • User-2060576634 posted

    hi everyone.. how can I use a defined query again in the same cshtml document with WHERE modifications?
    for example:
    @{

    var sql = db.Query("SELECT * FROM Table");

    }

    <HTML>

    @sql (how can i apply a modification to this query???)

    </HTML>

    Saturday, January 24, 2015 5:56 PM

Answers

  • User379720387 posted

    var sqlSelect = "SELECT * FROM Table";

    var sql = db.Query(sqlSelect);

    var sqlSelect2nd = sqlSelect + " WHERE......:;

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, January 24, 2015 5:59 PM