Skip to main content
1 online
theremin thereminOG 2002

What could it mean if I get the following:

Query OK, 1 row affected, 1 warning (0.00 sec)

I couldn't imagine it to mean that it has to do with there being a syntax error, since it's returning "Query OK." Yet, it seems contradictory, if at the same time it giving the "warning." What does mySQL interpret to be a "warning." And, it's weird, because it's returning this, and I didn't write the statements in question. I could see where if it was something that I personally wrote, it'd have errors in it, since I'm a newbie at SQL. But, it's SQL file that was premade, and I'm just running it.

Should I care that it gave me several of these "warnings?" Or, is it something I can just ignore, since it says "Query OK?" Plus, when I do" SHOW_TABLES; ...it shows that my tables were, in fact created. Weird.

iwz iwz

since you're using mysql 4.1, after you've run a query that has warnings, you can issue a command: SHOW WARNINGS;

That will show you any warning generated in the previous query.

theremin thereminOG 2002

Oh, awesome. thanks. I sure wish I had a book on mySQL 4.1. The two books I have about SQL, actually present the information as if you were using Oracle. Having a mySQL book would be very beneficial, instead of trying to determine every time, if something will work in mySQL, or if it's an Oracle thing.

iwz iwz

well, all you really need is the searchable docs: http://www.mysql.com/doc/en/index.html

theremin thereminOG 2002

Yeh, you're right. The reason for my rant tho is because it still beats me, why the college has these Oracle based books for our class as the required text, when we're not using Oracle.

iwz iwz

yeah, that's pretty lame.

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.