![]() |
|
#1
|
||||
|
||||
Integer in queriesWhenever I try execute a query, such as
Code:
|
||||
|
#2
|
||||
|
||||
Re: Integer in queriesDo you really have a column called index ?
That is also a reserved word in MySQL, and you CAN keep it, but you have to back-quote it when used in a query (and other places, see section 9.3 in the MySQL manual) as a field name: Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 14-May-2007 at 20:45.
|
|
#3
|
||||
|
||||
Re: Integer in queriesThank you for the response
I do have a column named index, but the problem is not because of it being a keyword. Even with column with other column names, the database either returns a blank value, or Code:
Code:
|
|
#4
|
||||
|
||||
Re: Integer in queriesOk then, so post the complete UPDATE statement...
Your original post has a SELECT statement, which is a different operation. Here is a sample interaction with a test table, containing a column named 'index': (notice the SQL before and after the error messages) Code:
Here's another example, with a WHERE clause: Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 15-May-2007 at 20:14.
|
|
#5
|
||||
|
||||
Re: Integer in queriesThank you. The only thing needed ended up being the back quotes. The other errors were caused by other things that I was able to fix.
|
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculate Sum of each position of an integer | Dave101 | C Programming Language | 1 | 16-Feb-2007 01:06 |
| Fortran problem... | Justin Fox | Miscellaneous Programming Forum | 6 | 24-Oct-2006 15:30 |
| Convert 'one hot' to integer | mikhail | C Programming Language | 4 | 24-Sep-2006 07:44 |
| how to make a 'INTEGER to BINARY' code? | justaHSstudent | C++ Forum | 1 | 02-Oct-2005 14:22 |
| Help with integer inputs | jrl134 | C++ Forum | 1 | 20-Feb-2005 00:36 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The