I have a simple show/hide requirement in an application.
Is it possible to change a single value using sql alone?
So that if the values in my table were:Code:mytable ====== title | VAR display | INT // either 1 or 0
"My article title"
1
Given that the query contained " ... where title = 'My article title' ... " it could automatically swop that to :
"My article title"
0
and vice versa?
It is early days so I could change the field to "Null" / 1 if that would make things easier?









Bookmarks