![]() |
|
#1
|
|||
|
|||
Mysql Data OfflineI have a Mysql database that I want to take certain entries off line if I find the data outdated. I have added a column to the data table that I want to use to indicate this dataentry is offline (Y/N). Can any one either show me how, or point me to information on how to read this entry in this table and know to ingore this data when searching.
Thanks, Richard |
|
#2
|
||||
|
||||
Re: Mysql Data OfflineIt depends, but as usual it is difficult to suggest anything without having details about the table structure and other information.
The simplest suggestion I can offer is for you to add a HAVING condition appended to your original SQL query. This way you probably don't need to worry about adding an index for this new column. An example follows: Code:
Something like that... |
|
#3
|
|||
|
|||
Re: Mysql Data OfflineEven though I ony gave a little information, you were able to pull it out in the end.
Thanks, your suggestion works just fine. Again, Thanks, Richard |
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Memory leak when nothing is happening... How can I even debug this ? | Algar | MS Visual C++ / MFC Forum | 10 | 19-Nov-2007 07:17 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| Strange C++ code memory leakage problem | gaoanyu | C++ Forum | 7 | 04-Nov-2005 08:09 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 15:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The