Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to get mysql update from select?

Asked by Ethan Clark Oct 3, 2022 1.3K views 1 answer
Share

About this question

 Here are two SQL statements. One is a select statement and the other is an update statement. I want to combine them.

Select

SELECT * FROM test WHERE `id`='1'

Update

UPDATE test SET `select_count`=`select_count`+'1' WHERE `id`='1'

Your answer

1 Answer

More SQL Server discussions