Posts by Filipe Martins • 146 points
2 posts
-
2
votes3
answers2114
viewsA: Insert if it does not exist or Update if it already exists in Mysql?
You can try using the REPLACE INTO. He is similar to INSERT, but if the record to be inserted has the same value as a primary key or a unique index, the existing record is deleted and the new record…
mysqlanswered Filipe Martins 146 -
1
votes1
answer40
viewsA: Query where result equals any of the values in the list
You can try to use the claúsula IN in his SELECT. Ex: select dup_mes from duplicatas dup_mes IN ('01/2017', '02/2017', '03/2017')