Quote:
Originally Posted by ScriptMan
Sorry I don't understand the question.
Also might the 1000 lines of data have more than one update for a single ticker symbol?
Usually php mysql transactions are done with a fore_each or a limit tag.
|
It's one update per ticker.
So, let's say have the data coming in from JSON:
"TBC", "Crazyhorse", "Crazyhorse is a small restaurant", "0.07", "45992", "8982222"
"ETV", "Tradinghouse", "Tradinghouse is not here but there", "1.24", "813348", "4539876"
"UTT", "Utahdome", "Not a great place", "5.12", "87222","5431345"
and 1,000 more rows like this
in my MySQL table, I have:
"234", "TBC", "Crazyhorse", "Crazyhorse is a small restaurant", "2.42", "24666", "9998882"
"556", "ETV", "Tradinghouse", "Tradinghouse is not here but there", "5.57", "813348", "2129345"
so, I have to update rows with id 234 and 556
but I don't have the UTT. So I have to insert it.
So, what would MySQL queries look like? What's the best approach?