locked
QuerySingle to retrieve one row from 2 joined tables RRS feed

  • Question

  • User-1753299103 posted

    Can I use t1.* and t2.* in the following query:

    var  rsRow= db.QuerySingle("select t1.*, t2.* from signin t1 INNER JOIN profile t2 ON t1.idreg = t2.idregprof where t1.idreg=@0", myid);

    Thanks

    Thursday, October 18, 2018 1:53 AM

Answers

  • User379720387 posted

    t1.* and t2.* works in my SQL Express db

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 22, 2018 1:59 PM

All replies

  • User1724605321 posted

    Hi engcanada,

    Can I use "where" in th efollowing quer:

    I notice you have include the "where " condition in your query and it should work , do you get any error message ?

    Best Regards,

    Nan Yu

    Thursday, October 18, 2018 3:02 AM
  • User379720387 posted

    t1.* and t2.* works in my SQL Express db

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 22, 2018 1:59 PM