|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I came across something unexpected with mySQL. I have a table that counts the hits to pages on my website. I have the hits broken down by month and placed in columns with names like "Jan", "Feb", "Mar" and so on. When I got to December it stopped working. I won't tell you how long it took to figure out but I can't call results from any column called "Dec". I changed it to "December" and it works fine.
Is it supposed to be like this? I am guessing "dec" is getting confused with "desc".
__________________
Without me my guitar is useless -- http://www.guitarnoise.com http://www.musiccareers.net |
|
#2
|
|||
|
|||
|
just put dec in double quotes, and that should fix your problem.
|
|
#3
|
|||
|
|||
|
Thanks. I will give that a try.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Strange Column name |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|