mysql 7 « mysql « Java Database Q&A





1. MySQL - Index Type    coderanch.com

3. duplicate created in AUTO INCREMENT in mysql if its possible?    coderanch.com

Hi, In my Project i use table "exampletrail" its have one composite key one of the primary key is "entrytime(timestamp)" another one is "instanceid (integer) - AUTO INCREMENT".my issue is Autoincrement field instanceid created one duplicate value. i dont know whether if its possible or not? yes means "how?". I need clear clarification. Thanks in advance

4. MySQL Connector/J    coderanch.com

I am trying to connect java and mysql using MySQL Connector/J. And I have problem, I don't know where I making mistake. I am using: XP OS, jdk1.6.0_23, MySQL Community Server 5.5.8 Jar file of the jconnetor is on the location: C:\Program Files\mysql-connector-java-5.1.14\mysql-connector-java-5.1.14-bin.jar In command prompt I've set a classpath: set CLASSPATH="C:\Program Files\mysql-connector-java-5.1.14\mysql-connector-java-5.1.14-bin.jar;" Code I was using to test is it ...

6. Using Mysql dll    coderanch.com

I develop a java application which uses mysql as its database.. and after deployment every user after installation will have to install the mysql database on its own setting the username and password as used in my program connection string.. my is that i want to reduce the stress of installation which makes the size of the packaged executable file heavy.. ...

7. Issues in MySql DBconnection    coderanch.com

8. MySQL timing out when debugging.    coderanch.com

9. mysql problems in netbeans    coderanch.com

Hello everyone, I try to run following code in netbeans as a IDE and mysql as database. I have added my sql connector in CLASSPATH and tool\libraries in netbeans and still getting the error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver here is the code import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DisplayQueryResults extends JPanel { private Connection connection; private Statement ...





10. Free java servers with mysql    coderanch.com

11. to_char in mysql    coderanch.com

12. MySQL Parameterization not working    coderanch.com

Hello All, I am trying to parameterize my sql statement but the following mysql statement will return no results. mysql = "select ?,count(*) as count from mytable where ? is not null and ( ? like '%@abc.com' or ? like '%@def.com' ) and myfield = ? and validate_date > date_sub(NOW(), Interval ? ) group by ?"; pstmt = conn.prepareStatement(mysql); pstmt.setString(1, "field1"); ...

13. MySQL    coderanch.com

For Tomcat there is a specific directory where you should put jars, if you want them to be available to all web applications. (No, I don't know what that is, but that's a Tomcat question and not a JDBC question.) Or for Java EE web applications, it's possible to put jars in the WEB-INF/lib directory of the application if you want ...

14. Detect mysql invalid username/password    coderanch.com

16. MYSQL on IPV6    coderanch.com

Recently I had to access MYSQL installed on an IPV6 machine. I had already connected to an MSSQL server on an IPV6 machine. The JDBC URL for doing so was a bit different than normal. So I guessed the same applies for MYSQL. I did a lot of googling and came to the following 2 formats jdbc:mysql://[IPV6 ADDRESS]:PORT/DBNAME. Here [] doesnt ...





17. mySQL Inner join    coderanch.com

Hello, I am having a problem with a SQL query and inner join. My problem is that I only want rows to be returned IF invoicelog.statusCode != 'OK' is true. The "statusCode = OK" may NOT exist in the rows being returned. The query below returns one row with invoiceID = 2663, even that statusCode = OK does exists in one ...

18. Class that returns Mysql Data?    coderanch.com

Hey there, first of all I want to say hello as this is my first post in this great forum. I hope I can seek some help here as well as help others, if my knowledge is good enough! I have sort of a logic problem with a class I wanted to develop. That class should get the Mysql statement as ...

19. installing MySQL    coderanch.com

That's what the Workbench is for. I don't remember it asking for .NET installation, but that's perhaps because it's already installed in my system. It just needs the .NET distributable binaries - the latest one is here. As far as I know (but not sure), .NET versions are cumulative, so you don't need to install earlier versions, though workbench may be ...

20. Not able run mysql based jdbc program    coderanch.com

21. What is mysql ports ?    coderanch.com

22. Upgrade MySQL or switch to MariaDB?    coderanch.com

My company runs the production systems on MySQL 5.1. For a new server that'll come live over the next couple of months we'd like to avail ourselves of the performance improvements made in both MySQL 5.5 and MariaDB (5.2 or 5.3, the latter still in beta). Since both are supposed to be drop-in replacements for MySQL 5.1, the decision can go ...

23. java to mysql    coderanch.com

24. Problem with MySql Connector/J    dbforums.com

25. Compiling Mysql Using Gcj    dbforums.com

26. Java + Mysql    dbforums.com

Hi, i don't speak english well, so please appologise me for my mistakes. I use Windows XP. NetBeans IDE 3.6. JDK 1.5. I'm a newbie in Java. And i'm writing an applet, that will shows the statistics from a mysql database. I've downloaded a JDBC Mysql driver from mysql.org and registering it as show in documentation: import java.sql.Connection; import java.sql.DriverManager; import ...

27. Need help setting up JDBC with mySQL and Netbeans    dbforums.com

import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class JdbcExample2 { public static void main(String args[]) { Connection con = null; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql:///test", "root", "secret"); if(!con.isClosed()) System.out.println("Successfully connected to " + "MySQL server using TCP/IP..."); } catch(Exception e) { System.err.println("Exception: " + e.getMessage()); } finally { try { if(con != null) con.close(); } catch(SQLException e) {} } } ...

28. Auto Generate Java code from MySQL DB    dbforums.com

hi, i have MySQL v 5.1, java 1.6, netbeans 6, eclipse 3.3.2 and JDeveloper 11g installed on my laptop. my question is, is there anyway i could get any of the above mentioned IDEs to generate a project based on the connection for MySQL db? example if i had a db called DB1 with 3 Tables T1, T2 and T3 and ...

29. Java, UnixODBC and MySQL    dbforums.com

Hello, Am new to Java, UnixODBC and MYSQL. I need help with running a java program that connects to a mySQL DB and retrieves values. I use Mandriva Linux, I installed UnixODBC (I have the GUI too), MySQL (I have SQLGUI too). With the help of instructions from the unixodbc site I have been able to set up the driver for ...

30. mySql & java    dbforums.com

Hi i am trying to get connection with mysql by using java. when i try to compile java code it gives following compilation error "testSQL.java:29: cannot access Connection bad class file: .\Connection.class class file contains wrong class: org.gjt.mm.mysql.jdbc2.Connection Please remove or make sure it appears in the correct subdirectory of the classpath. Connection con = DriverManager.getConnection(url, username ,pass); my code is ...

31. [jdbc]writing a bolb in a mysql    dbforums.com

Hi, I would like to save a serializable object into a mysql DB. I was thinking to use a BLOB type Here is my reading and writing code, but the reading doesnt work: invalid stream header ------------------------------------------------------------------------ Ecriture: ------------------------------------------------------------------------ l.Entry = (DefaultStyledDocument) o; try{ ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout); oout.writeObject(l.Entry); oout.flush(); oout.close(); request = "UPDATE `logentry` ...

32. MySQL ConnectorJ 3.1 --> java.io.IOException: Unexpected end of input stream    dbforums.com

Hi all. I use MySQL with Connector J. I just updated to Connector J 3.1 and I now get the following error SQL Connection exceptionjava.sql.SQLException: Communication link failure: java. io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:339 ) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:78 ...

33. Java MySQL    dbforums.com

Hi Guys, first question. How can i insert data to MySQL database using Java? can someone give me a sample code. second question How can i retrieve data to MySQL database using also Java? can someone give me a sample code. I realy need this 2 sample code for my project.. tnx for any reply

34. Accessing a MySQL database in java    go4expert.com

35. getting started with mySQL    java-forums.org

I just spent a day trying to write from my Servlet, I now find on the Sun Forum that the app packaged in a dot war file writes to a temp location. Apparently, based on the report in the Sun Java Fourm, it will be necessary to write to some sort of database to get persistence across server restarts. I have ...

36. [SOLVED] mysql    java-forums.org

37. java programming with MySQL    java-forums.org

38. How to set auto_increment for MYSQL    java-forums.org

Dear all i tried to set auto_increment for the primary key "NEWUSERID" for the table "newuserregistration" using navicat. Database :MySQL Database Explorer :Navicat 8 MySQL but this does not work. problem: What i need is whenever user provides all the details for the table "newuserregistration" and clicks on submit a new "NEWUSERID" which acts as a primary key automatically gets filled ...

39. How to Change MySQL Database Location    java-forums.org

40. Creating Java EE application with MySQL db    java-forums.org

Hey, I'm working on some Java EE application (with GWT and the smartclient widget library), and I'm running against a few simple Java EE related problems (this is my first Java EE project). I know how I can send and receive data from my server side Java with RPC calls, I know that I should use JDBC to connect to my ...

41. Backing Up Mysql    java-forums.org

42. Java and MySQL    java-forums.org

Hello, I have created a very simple MySQL database and created a table with two columns, namely "X", and "Y". After that, I created a desktop database Java application for that. My question is: I want to add a button that is responsible for calculating the SUM of the "X" column values. So, in other words, when I press a button, ...

43. JDBC data retrieval with MySQL    java-forums.org

Ok I have a server with 5+ columns and 5+ rows (the actual amount doesn't matter) I have the data from column 2, row 4 stored in a variable, how do i then store the data in column 4 row 4 in another variable? I don't know any MySQL syntax, nor how to use it in java much so if someone ...

44. Stuck with NetBeans 6.5 / MySQL    java-forums.org

Hello, I created a very simple database with a "Table" with ONLY TWO rows, X and Y. I retrieved the information using "SELECT * from table". What I want to do is that I want to add a button to my GUI using NetBeans 6.5 that when I click on I get the result of "SELECT * from table"/ So, how ...

45. MySQL Dump    java-forums.org

Hello friends, A MySQL dump is a bit slower than a raw backup because it creates all the SQL queries required to create the tables of that database, as well as all the insert queries required to place the information back into the database's tables. If you want to perform the mysql dump manually, without the assistance of your hosts control ...

46. Mysql LIKE clause problem    java-forums.org

47. mysql classpath ubuntu problem    java-forums.org

First, let me say I'm an old guy, not in any school course or anything. If you are going to suggest reading, be specific please. That said, I have read a lot, but I'm not clear on the "export" talked about here. My current project and resulting question was exactly the same as the thread originator munish But I don't know ...

48. JDBC and mySQL database trouble    java-forums.org

So simply put, I can't figure out how on earth to connect my java app running on my local machine to a mySQL database running on a server on the web. Java Code: import java.sql.*; public class Connect { public static void main (String[] args) { Connection conn = null; try { String userName = "username"; String password = "password"; String ...

49. How to check the number of applications connected to MySQL DB    java-forums.org

Hi, Is there some way to check the number of applications connected to an instance of mysql database? I have two different Java applications that will be using the same instance of MySQL. My requirement is that, I want to close the MySQL instance while closing the Java application. But before doing so, I want to make sure the other application ...

50. Mysql and JavaFX    java-forums.org

I have a JavaFX application that needs access to a MySql database on a server. I have the following code that almost works: Java Code: try { Class.forName("com.mysql.jdbc.Driver").newInstance(); sql = DriverManager.getConnection("jdbc:mysql://site/db","username","password"); } catch(e:java.lang.Exception) { ExceptionBrowser.text = e.toString(); ExceptionBrowser.visible = true; } finally { if (sql != null) { try { sql.close(); } catch (e:java.lang.Exception) {ExceptionBrowser.text = e.toString(); ExceptionBrowser.visible = true} } ...

51. Java MySQL    java-forums.org

Hello Guys, I have a problem that initially seemed to be pretty easy to overpass so I said OK, I will give it a try another time but I finally end up unable to solve it. The story is simple: I have a java app that has to talk to an external mysql server. Currently everything is working smoothly because i ...

52. Mysql problem    java-forums.org

I give you 2 solutions: 1 the official one: Add the driver to classpath, never mind where the applet and the connector are it would be something like this: JAVA_HOME=/usr/local/jdk1.x export JAVA_HOME CLASSPATH=${JAVA_HOME}/lib/tools.jar CLASSPATH=${CLASSPATH}:${JAVA_HOME}/jre/lib/ext/theconnector.jar export CLASSPATH (is an example) 2. not official one (but it works!): unzip connector.jar, do it with winrar (WinRAR archiver, a powerful tool to process RAR and ...

53. mysql help    java-forums.org

String a="f"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:box", "", ""); myString="create table " + "table" + " (id int unsigned not null auto_increment primary key," + "sender varchar(50) not null,inbox text(20000) not null)"; stmt=con.prepareStatement(myString); //the code execute till here stmt.executeQuery();///after this statement no statement will execute //from here nothing will execute myString="insert into "+"TEtsing"+"box (sender,inbox) " +" values ('"+a+"','"+a +"');"; stmt=con.prepareStatement(myString); stmt.executeQuery();// ...

54. mysql download    java-forums.org

55. Mysql Help    java-forums.org

I am newcomer to this java forum. So i request to help me in Java pogramming. The first question to you all is that i installed my sql 5 in my pc and i don't know how to use it in creating database and connect to other java ide. Please help me.

56. mysql procedure    java-forums.org

String query = "CALL `Airplane_Request`.`rt_ins_trip`(?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; //1 2 3 4 5 6 7 8 9 10 11 12 13 14 // Insert Trip cs = conn.prepareCall(query); cs.setString(1, bsns); cs.setString(2, dt); cs.setString(3, mtngtm); cs.setString(4, mtngwdth); cs.setString(5, street); cs.setString(6, city); cs.setString(7, state); cs.setString(8, phone); cs.setString(9, status); cs.setInt(10, athrzr_id); cs.setString(11, cmnts); cs.setString(12, cntct); cs.setInt(13, cbempty); cs.registerOutParameter(14, Types.INTEGER); cs.execute(); System.out.println(cs.getInt(14));

57. JDBC with Connector/J with MySQL    java-forums.org

Hi to all... I just want to connect to mysql database with connector/J ( JDBC) I have downloaded "mysql-connector-java-5.1.15.zip" .... Then i extracted the file from this folder to----> "C:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\mysql-connector-java-5.1.15-bin.jar " and set environmental variables classpath to above url too... I can compile the code successfully ........ But while running it gives errors..... I have given my code and running ...

58. What is url of my database? MySql WorkBench    java-forums.org

Hello members, I am very new to the database, so i opted a gui(MySql WorkBench). #1.I created a server instance name 'MySql@localhost' #2.I created a conncetion 'localhost' user 'root', host 'localhost:3306' #3.then in 'localhost' connection created a schema 'online_auction' #4.In 'online_auction' created a table 'user' with 5 colums. I am using connector J So now what will be the URL of ...

59. question about mysql    java-forums.org

So I set up a database with mysql on my home computer. Does that mean it can always take queries? I connected it with a java app I made and I previously thought I would have to keep myself logged in the command line, but turns out it works whenever. So, this means it will always work whenever my computer is ...

60. mysql empty set    java-forums.org

61. Product Offer in Mysql    java-forums.org

The first thing I think of about your problem is to have another table which stores the number of item to be bought and the (discounted) price. But I am not sure if this is a good idea for your project. Second thing that I think of is to have different product ID for that, it is what I see in ...

62. making 2 mysql database fields equal?    java-forums.org

Ok thanks Tolls. here is the query I am using. Java Code: $currentUser = $_SESSION['myusername']; $userId = mysql_query("SELECT id FROM users WHERE username = '$currentUser'");//get current session user name and get ID. mysql_query("INSERT INTO images (gallery_user) values ('$userId')");// insert current user id into gallery user. //all based on the session user name and here is the table structure. -- phpMyAdmin SQL ...

63. exporting data from .xml file to mysql    java-forums.org

Dear all i am having a mysql database which is fed with a php form. i want to add an additional featute to the form: enter the data in mysql database using an xml file. The XML file may contain 1-10,000 enteries and each entry should form a unique entry in the mysql database. Please help me how can i 1) ...

64. trouble installing mysql workbench    java-forums.org

PC same pc the program, mysql? if so, it is. if not, how do i check? I only use windows 7 firewall. i was able to get it to work before. i had wiped my system clean, and now i seem to be having issues. :p but i did have windows 7 firewall before, so there should be no conflict there. ...

65. App freeze during MySQL connestion    java-forums.org

public static void main(String[] args) throws SQLException { getTitleFromDB(); } public static void getTitleFromDB() { try { Class.forName("com.mysql.jdbc.Driver"); } catch(Exception e) { System.out.println("Driver error"); System.out.println(e.toString()); } try { Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/cz_lomnice", "adam", "1234"); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("SELECT title FROM lomnice_notams"); while (rs.next()) { System.out.println(rs.getString("title")); } } catch(Exception e) { System.out.println("DB connection error"); System.out.println(e.toString()); } }

66. [ASK] problem of access to mysql    java-forums.org

67. MySQL Case Sensitive Problem    java-forums.org

Hi I have a jsp website which requires users to fill up verification code which is case sensitive when users register or login. However, if user signed in with Capital letter (according to the code image generated), it returned error. If user signed in using all small cap, it is ok. Is it related to MySQL problem? I use MySQL 5.0, ...

68. MySql in NetBeans 5.0    java-forums.org

Connecting to a MySQL Database in NetBeans IDE I refered to this manual starting from download and the configuration wizard allow me to install the service. The last option is to run it by clicking EXECUTE button..and there I got the error. So tried with command prompt , " sc query MySQL " shows me that service is available on machine ...

69. [SOLVED] float in java and in mysql    java-forums.org

70. MySql5.1 and NetBeans    java-forums.org

Hi, I dont know if Im on the right section of this forum. I am using NetBeans and MySql. MySql is located on other machine. Now I already try to connect through services tab, I add drivers path and enter needed information and it was able to connect. Now I am trying it through code. Do I have to set MySql ...

71. Load with values to mysql database    java-forums.org

72. Mysql reusable    java-forums.org

Hello, I'm new to java and I'm having some difficulties with Mysql connection. I've found some connection codes on the internet to connect to my mysql database. This works well, however since I'm going to need to make alot of connections in my program, it would be much easier to have some, I dont know if I am saying this right, ...

73. can't write my jdbc class to manipulate mysql    java-forums.org

well, i recently installed netbeans 6.8 . from netbeans i can access and manipulate mysql 5.0 databse. from netbeans i could even manage to generate an entity class. but when i try to write a little datahelper class to manipulate my database.. i cant get this jdbc working. my jdbc jar folder is placed in the lib folder i just typed ...

74. MySQL    java-forums.org

Hey, I use this method to get the news from my mySQL database: Java Code: public void getNews() { sM("Connecting to DB", Color.BLACK); try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException ex) { sM("ERROR ON LINE 158 : " + ex.toString() + "", Color.RED); } Connection con = null; try { con = (Connection) DriverManager.getConnection("jdbc:mysql://da****t/****w", "d******", "k***"); } catch (SQLException ex) { sM("ERROR ...

75. mysql (Basic opening page operation using database)    java-forums.org

Hi everybody lots of thanks for your previous helps, my question is about how to build a check "username/password". I cant figure out it. String username = t1.getText(); String passwords = t2.getText(); Statement st; Statement st2 = null; try { st = openConnection(); res = st.executeQuery("SELECT * FROM giris WHERE=" + username); res2 = st2.executeQuery("SELECT * FROM giris WHERE=" + password); ...

76. MySQL problem    java-forums.org

77. JDBC MySql question    java-forums.org

Java Code: import javax.swing.*; import java.sql.*; public class Database { private static Statement stmt; public static String database,allt3[] = new String[10]; public static int card; private static boolean blank = false; public static void connectDatabase(){ Statement stmt; Connection con = null; if(database.equals("")){ JOptionPane.showMessageDialog(null, "Can't run without database!"); System.exit(0);} try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://", // Using anonymous cause i feel like ...

78. MySQL results to ArrayLisy    java-forums.org

79. Trouble linking up to MySql database    java-forums.org

Can anyone check this code and maybe see what I am doing wrong? I have an sql database called MyProfile and I am trying to experiment with it by selecting a field of the client's Name, Email, and amount paid. I want to get those values and system.out to the screen. All that happens is it gives me the path of ...

80. I need help with MySql linking with my Java application    java-forums.org

I have downloaded and installed Connector/J and added the .jar file to my classpath. However, I try to open a MySql database that I have for experimental purposes. When I run my code which compiles just fine all I get is the string literal from the Class.forName statement in the terminal window. What I am attempting to do is access a ...

81. my application is not connectioning to mysql database    java-forums.org

String username = ""; String passWorD = ""; String Year = " "; try { Connection con = DriverManager.getConnection ("jdbc:mysql://localhost/ncu students","mario","computer"); Statement state = null; state = con.createStatement (); ResultSet result = state.executeQuery("SELECT user name, password,year FROM student info"); while (result.next()) { username = result.getString("user name"); passWorD = result.getString("password"); Year = result.getString("year"); } con.close (); } catch (Exception r) { System.out.println ...

82. [MySQL][Jar] Problems outside the IDE    java-forums.org

How are you running the jar from the command line, what are you typing in? If its runnning ok in the IDE, could be a classpath issue. Check the manifest file and see what the path is to the class that has your main method. Probably something like packagename.className. Then try to run it using "java -cp packagename.classname MyJarFile.jar

84. java mysql    java-forums.org

The following will create a table with the fields from String field (in this case Surname) and Forename. There are better ways, those "'s in String query are a pain to get right. Statement statement = con.createStatement(); String field = "Surname"; String query = "Create Table Pupil(" + field + " CHAR(30), Forename CHAR(30))"; statement.executeUpdate(query);

85. Need help filling a combo box from mysql    java-forums.org

87. Java and MySQL    java-forums.org

88. wysiwyg for JEE and MYSQL application    java-forums.org

89. Java and MySQL problem    forums.oracle.com

but I'm getting this MySQL exception: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NULL)' at line 1" Does anyone imagine what could be going wrong? I'd like to add that when I'm running the program only one time there is no problem. ...

90. Netbeans database app displaying MySQL data wrong...    forums.oracle.com

I am building a database application using Netbeans and MySQL. I am using the skeleton application that comes with Netbeans but when the data isn't coming out correctly for one field. I am trying to keep track of employees and their supervisors but the Supervisor ID field is being displayed as "orgchartproject4.Employee[positionID=100000]." That is, projectname.TableName[foreignfield=value]. I'm pretty sure this has something ...

92. java and mysql    forums.oracle.com

hi, i am practicing making databases for a game in java i want to make. and i was wondering a few things. how does java connect to the database, do i put sql code right into my java program? does the user need mysql to use my game? i want to use the data stored in my database, and load it ...

93. vector storing into mysql database    forums.oracle.com

You need create 2 tables like venues, dates. This is for test db: CREATE TABLE `test`.`venues` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `venue` VARCHAR(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; CREATE TABLE `test`.`dates` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `fk_venues` INTEGER UNSIGNED NOT NULL, `dateOfVenues` DATETIME NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `FK_dates_1` FOREIGN KEY `FK_dates_1` ...

94. MySQL    forums.oracle.com

trying to create a simple java application that works with a database. MySQL in this case. I have a textbook that covers this, but it is often overcomplicated. I want this to be as simple as possible right now. How would I create the basic methods to add, update, insert, and delete records form the DB. I am pretty sure I ...

95. Duplicate Data into MySQL database via JDBC    forums.oracle.com

Hi all, I am inserting data into a mysql database via JDBC. However the data I am using has surnames as a data field, and obviously some people have the same surname, so when inserting the data (automatically from a text file), I get a "duplicate entry" error. How do I get round this? Thanks edit: never mind, I just had ...

96. Problem with MySQL function CONCAT    forums.oracle.com

97. how to use MySQL BIGINT in Java?    forums.oracle.com

98. JDBC mysql    forums.oracle.com

Hi I am new to Java and I want to ask while creating a website or any of the project i want to setup the connection only once. I mean connection should be made in only one class and to be provided to all the classes and need not to be made in all classes. How can i do that? Regards ...

99. MySQL on OS X    forums.oracle.com

100. all the link of web site in mysql database    forums.oracle.com

LOL! Yeah, it's a bad idea to blatantly ask for code in a forum such as this one. You'll need to do your own research just as the rest of us have. Search for an HTML parser (to easily get the tags from the site). There is also a really good tutorial @ http://java.sun.com that you should look at regarding JDBC. ...