Update and select in one query

前端 未结 5 2034
臣服心动
臣服心动 2020-12-06 05:38

I found similar questions with correct answers. But they\'re a bit complicated for me. I just want a simple basic statement.

I have:

string sql = \"         


        
5条回答
  •  盖世英雄少女心
    2020-12-06 06:10

    You can't.

    There's no convention in a SQL UPDATE statement for returning data. And vice versa -- a SELECT statement doesn't write information to a table.

    If you've found questions/answers that you feel are similar to what you want, please provide links.

提交回复
热议问题