Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Question about MySQL ...
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles
Question about MySQL ...

hey guys .. this is a question for the database geeks and computer nerds who use MySQL .. it would be great if someone knows about JDBC and it's connections to MySQL ..

anyways, i was running into problems with the dumb database .. it wasn't taking aliases for tables when i was querying the tables .. such as :

"select a.att1, a.att2
from table a, table2 b";

typing the query at the prompt would give me no problems, but however, when i run it on the net, SQLExceptions get thrown like hell, and tell me that the database cannot find the table .a or .b .. i am like what the hell??? they are f'n aliases .. not the actual table names... hahhahahahahaha ...

i was thinking that it is the way i am creating my 'statements' to create resultSet queries ... this is how i am writing them ...

m_stmt = m_connect.getConnection().prepareStatement(sqlString, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE );

where m_stmt is declared as PreparedStatement, m_connect.getConnection() gets me a natural java.sql.Connection .. and the TYPE_SCROLL_SENSITIVE and CONCUR_UPDATABLE help me roll back my result sets when i am reading them .. that's pretty awesome .. can you roll resultSets back to the beginning in php ??? .. just wondering ..

but if anyone has any thoughts, and experiences where MySQL thinks the aliases are the actual table names, then speak out, or hold your peace .. hahhahahaa...


___________________

Old Post May-13-2005 07:50  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
vrahnos
In the mix



Registered: Sep 2003
Location: Heraklion, Crete

i never used command line....
try this

Old Post May-13-2005 08:00  Greece
Click Here to See the Profile for vrahnos Click here to Send vrahnos a Private Message Add vrahnos to your buddy list Report this Post Reply w/Quote Edit/Delete Message
vrahnos
In the mix



Registered: Sep 2003
Location: Heraklion, Crete

quote:
Originally posted by Nou

anyways... i duh know... im tired caz i created a problem that wasnt a problem to begin with and spent an hour trying to solve it only to realize that it wasnt a problem...


i know exactly what you mean....

Old Post May-13-2005 08:46  Greece
Click Here to See the Profile for vrahnos Click here to Send vrahnos a Private Message Add vrahnos to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles

quote:
Originally posted by vrahnos
i never used command line....
try this


yeah i got the adminstrator too .. it works fine there too ..
i got the problem fixed anyways ..

[me b!tchin' like some emo crazed haven maniac ]

then i ran into more problems later when i put all my data i put into MySQL into simple INSERT statements, so i can transport the data to Oracle ..

i run the web fine with MySQL ... then i run into more db problems with Oracle .. i am like what the hell??? .. it keeps throwing errors that i have too many processes open, or too many cursors open .. i am like son of a b!tch .. so i had to go back into my code and implement OracleConnectionPooling with my database connections to stop it from opening a single process for each query call i make .. that sucks monkey balls ... so it is finally working, and can enjoy the summer vacation the next week or so .. projects suck ass... hhahahahahahaha ....

[/me b!tchin' like some emo crazed haven maniac ]


___________________

Old Post May-13-2005 19:05  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
CGRumler
Master of the Hadouken



Registered: Aug 2002
Location: Indiana

I just got done taking my CPT 272 Database Fundamentals class for this semester. I got down all of the basics pretty damn quick. We did nothing but MySQL. I might be looking into making a career out of this in the near future. I should be getting my Associate's Degree in the mail next week.


___________________
My Collection of CD's

Old Post May-13-2005 19:55  United States
Click Here to See the Profile for CGRumler Click here to Send CGRumler a Private Message Visit CGRumler's homepage! Add CGRumler to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Question about MySQL ...
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackTrack # 1 Global DJ Broadcast 03-16-06 From Guest Mix John 00 Fleming [2006] [2]

Click here to listen to the sample!Pause playbackThe Knife - We Share Our Mothers Health (Trentemoller Remix) [2007]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 22:33.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!