472,989 Members | 3,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

i know this isn't the place for feature requests, but...

i figured one of the gurus in here could tell me if/how this is possible
already:

i like simple, singular table names. For example "user". I bet you know
the problem already: USER is a keyword, and when I query this table i
get errors. Is there a way to make mysql's keyword-watching
case-sensitive? so it would leave "user" alone but catch errors on
"USER". Good SQL writing means capitalizing keywords yourself...

should i just get accustomed to table prefixes? i think they're ugly;
what do you think?
Dec 16 '05 #1
2 1161
Matthew Crouch wrote:
i figured one of the gurus in here could tell me if/how this is possible
already:

i like simple, singular table names. For example "user". I bet you know
the problem already: USER is a keyword, and when I query this table i
get errors. Is there a way to make mysql's keyword-watching
case-sensitive? so it would leave "user" alone but catch errors on
"USER". Good SQL writing means capitalizing keywords yourself...

should i just get accustomed to table prefixes? i think they're ugly;
what do you think?


As you would probably have more users in one table you could call it
'users' instead of 'user' ;-) or use a different word as customer for
instance, this way you don't need to use prefixes...

Jonathan
Dec 16 '05 #2
"Matthew Crouch" <ma************@spamlessverizon.net> wrote in message
news:INzof.24529$OK6.14328@trnddc03...
i like simple, singular table names. For example "user". I bet you know
the problem already: USER is a keyword, and when I query this table i get
errors. Is there a way to make mysql's keyword-watching case-sensitive?
No -- SQL keywords are always case-insensitive. As for table names, they
are case-insensitive on Windows and case-sensitive on UNIX/Linux. And I
think there's an option for the MySQL server that can override this, but
that's besides the point of your question.
should i just get accustomed to table prefixes? i think they're ugly; what
do you think?


I don't think identifier prefixes are necessarily ugly. But that's a matter
of taste.

Anyway, you can use a table name that conflicts with a reserved word by
enclosing it in back-ticks:

SELECT * FROM `USER`;

(FWIW, standard SQL uses double-quotes for this purpose.)

Regards,
Bill K.
Dec 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: The Plankmeister | last post by:
Is doing this bad: <h3>Some title or other...<a href="#pagetop">back to top</a></h3> I have a feeling it is... My problem is I'm using CSS to style the H3 into a block that spans the whole...
7
by: Neo | last post by:
I am using linux for my c programs and while compiling I some times have to use -lm for math libraries .. that is linker option, but how will I know the library which I have to link ......
59
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at...
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
12
by: Raymond Hettinger | last post by:
I am evaluating a request for an alternate version of itertools.izip() that has a None fill-in feature like the built-in map function: >>> map(None, 'abc', '12345') # demonstrate map's None...
19
by: George Sakkis | last post by:
It would be useful if list.sort() accepted two more optional parameters, start and stop, so that you can sort a slice in place. In other words, x = range(1000000) x.sort(start=3, stop=-1) ...
1
by: Brennan Stehling | last post by:
I have posted 4 feature requests here... https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=232161 Please vote for them if you think they would be useful. I...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.