"jdbc:mysql:///test" - "jdbc:mysql:test" what is the difference

"jdbc:mysql:///test" -> "jdbc:mysql:test" what is the difference:
I used both of them in my url but only "jdbc:mysql:///test" worked only
what is the difference what /// means?

JDBC URLs have the format
jdbc:<subprotocol>://<data source identifier>
jdbc indicates a JDBC data source. subprotocol identifies which JDBC Driver to use.
For com.mysql.jdbc.Driver and localhost server, database name as 'test':
it's jdbc:mysql://localhost/test
or jdbc:mysql://127.0.0.1:3306/test
you would select another server and database name.
For sun.jdbc.odbc.JdbcOdbcDriver with MS Access or SQLServer database, it's jdbc:odbc:DSNname
HTH

Similar Messages

  • In jdbc adapter what is the difference between insert and update insert

    in jdbc adapter what is the difference between insert and update insert
    Edited by: katru vijay on Mar 22, 2010 7:43 AM

    Please refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
    Hope this helps.
    Regards,
    Chandravadan

  • What is the difference between mysql and mysqli

    hello can any one tell me What is the difference between mysql and mysqli ? i googled but i cant find any
    Edited by: 994030 on Mar 14, 2013 3:43 PM

    Yes. they are the same.

  • What's the differences between connectors the old ones and newest ones?

    i developed an application with tomcat jakarta 5.1-mysql-java servlets, and i had been using the mysql-connector-java-3.1.8-bin.jar connector a little old uh, my question is what is the differences between the last mencionated and this version mysql-connector-java-5.0.0-beta-bin.jar, you say "just the version", i mean, i know there are many changes in the new ones but i don't like the idea to change all my application, and i would like to know what changes i have to do for update and compiling with them. i.e. i always did it like this:
    import java.sql.*;
    public class MultiUsos {
    private final static String log = "x";
    private final static String pswd = "x";
    private final static String Bd = "x";
    private final static String URL = "jdbc:mysql://localhost:3306/"+Bd;
    private Connection con = null;
    private ResultSet rs = null;
    private Statement stmt = null;
    private Conexion conexion = null;
    public int insert(String query) throws SQLException {
    try {
    con = conexion.getConexion(URL,log,pswd);
    con.setAutoCommit(false);
    if(con != null) {
    stmt = con.createStatement();
    r = stmt.executeUpdate(query);
    stmt.close();
    else System.out.print("� No existe conexion !");
    catch(SQLException e) {
    System.out.print("Error MySQL: ");
    e.printStackTrace();
    r = 0;
    return r;
    con.commit();
    return r;
    public void liberaConexion() {
    try {
    stmt.close();
    con.commit();
    con.close();
    catch(Exception e) {
    and i looked this example in new connectors:
    PreparedStatement pstmt = connection.prepareStatement("insert into......
    and things like that, i don't know if there were the same method in the older versions but if this is exclusive new for connectors, i'm fried.
    i will apreciate all comments and help, and sorry about my not good english.
    thanks.

    and i looked this example in new connectors:
    PreparedStatement pstmt =
    connection.prepareStatement("insert into......
    and things like that, i don't know if there were the
    same method in the older versions but if this is
    exclusive new for connectors, i'm fried.I am not sure if I understood your problem correctly but as I understand, you are worried because of the examples of PreparedStatement. That is an object representing a precompiled SQL statement. It is a part of the JDBC API, the same as Statement. There are several situations where the use of PreparedStatement is better than the usual Statement but this does not make the Statement obsolete.
    I would suggest you to read the JDBC tutorial
    http://java.sun.com/docs/books/tutorial/jdbc/
    especially the section dealing with the use of PreparedStatement.
    http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
    In general, it is better if you go through the complete tutorial and understand the features which are provided in the JDBC API.
    Hope I was helpful.

  • BODS 3.1 : SAP R/3 data extraction -What is the difference in 2 dataflows?

    Hi.
    Can anyone advise as to what is the difference  in using the data extraction flow for extracting Data from SAP R/3 ?
    1)DF1 >> SAPR/3 (R3/Table -query transformation-dat file) >>query transformation >> target
    This ABAP flow generates a ABAP program and a dat file.
    We can also upload this program and run jobs as execute preloaded option on datastore.
    This works fine.
    2) We also can pull the SAP R/3 table directly.
    DF2>>SAPR/3 table (this has a red arrow like in OHD) >> Query transformation >> target
    THIS ALSO Works fine. And we are able to see the data directly into oracle.
    Which can also be scheduled on a job.
    BUT am unable to understand the purpose of using the different types of data extraction flows.
    When to use which type of flow for data extraction.
    Advantage / disadvantage - over the 2 data flows.
    What we are not understanding is that :
    if we can directly pull data from R/3 table directly thro a query transformation into the target table,
    why use the Flow of creating a R/3 data flow,
    and then do a query transformation again
    and then populate the target database?
    There might be some practical reasons for using these 2 different types of flows in doing the data extraction. Which I would like to understand.  Can anyone advise please.
    Many thanks
    indu
    Edited by: Indumathy Narayanan on Aug 22, 2011 3:25 PM

    Hi Jeff.
    Greetings. And many thanks for your response.
    Generally we pull the entire SAP R/3 table thro query transformation into oracle.
    For which we use R/3 data flow and the ABAP program, which we upload on the R/3 system
    so as to be able to use the option of Execute preloaded - and run the jobs.
    Since we do not have any control on our R/3 servers nor we have anyone on ABAP programming,
    we do not do anything at the SAP R/3 level
    I was doing this trial and error testing on our Worflows for our new requirement
    WF 1 : which has some 15 R/3 TABLES.
    For each table we have created a separate Dataflow.
    And finally in between in some dataflows, wherein, the SAP tables which had lot of rows, i decided to pull it directly,
    by-passing the ABAP flow.
    And still the entire work flow and data extraction happens ok.
    In fact i tried creating a new sample data flow and tested.
    Using direct download and - and also execute preloaded.
    I did not see any major difference in time taken for data extraction;
    Because anyhow we pull the entire Table, then choose whatever we want to bring into oracle thro a view for our BO reporting or aggregate and then bring data as a table for Universe consumption.
    Actually, I was looking at other options to avoid this ABAP generation - and the R/3 data flow because we are having problems on our dev and qa environments - giving delimiter errors.  Whereas in production it works fine. Production environment is a old set up of BODS 3.1. QA and Dev are relatively new enviornments of BODS. Which is having this delimiter error.
    I did not understand how to resolve it as per this post : https://cw.sdn.sap.com/cw/ideas/2596
    And trying to resolve this problem, I ended up with the option of trying to pull directly the R/3 table. Without using ABAP workflow.  Just by trial and error of each and every drag and drop option. Because we had to urgently do a POC and deliver the data for the entire e recruiting module of SAP. 
    I dont know whether i could do this direct pulling of data - for the new job which i have created,
    which has 2 workflows with 15 Dataflows in each worflow.
    And and push this job into production.
    And also whether i could by-pass this ABAP flow and do a direct pulling of R/3 data, in all the Dataflows in the future for ANY of our SAP R/3 data extraction requirement.  And this technical understanding is not clear to us as regards the difference between the 2 flows.  And being new to this whole of ETL - I just wanted to know the pros and cons of this particular data extraction. 
    As advised I shall check the schedules for a week, and then we shall move it probably into production.
    Thanks again.
    Kind Regards
    Indu
    Edited by: Indumathy Narayanan on Aug 22, 2011 7:02 PM

  • What is the difference between "Invisible" (11g) and "virtual" index?

    Hi
    What is the difference between the "Invisible" index and "virtual" index?
    Thanks
    Balaji

    Indexes can be visible or invisible. An invisible index is maintained by DML operations and cannot be used by the optimizer. Actually takes space, but is not to be used as part of a potential access path.
    AFAIK, a virtual index is created by the tools used in SQL statement access path tuning to provide an alternative for the optimizer to test. It does not take any real space as it is a pure in memory definition.

  • What is the difference between exists and in

    hi all
    if i have these queries
    1- select ename from emp where ename in ( select ename from emp where empno=10)
    and
    2- select ename from emp where exists ( select ename from emp where empno=10)
    what is the difference between exists and in is that only when i use in i have to bring the field name or what.... i mean in a complex SQL queries is it will give the same answer
    Thanks

    You get two entirely different result sets that may be the same. Haah! What do I mean by that.
    SQL> select table_name from user_tables;
    TABLE_NAME
    BAR
    FOO
    2 rows selected.
    SQL> select table_name from user_tables where table_name in (select table_name from user_tables where table_name = 'FOO');
    TABLE_NAME
    FOO
    1 row selected.
    SQL> select table_name from user_tables where exists(select table_name from user_tables where table_name = 'FOO');
    TABLE_NAME
    BAR
    FOO
    2 rows selected.So, why is this? the WHERE EXISTS means 'if the next is true', much like where 1=1 being always true and 1=2 being always false. In this case, where exists could be TRUE or FALSE, depending on the subquery.
    WHERE EXISTS can be useful for something like testing if we have data, without actually having to return columns.
    So, if you want to see if an employee exists you might say
    SELECT 1 FROM DUAL WHERE EXISTS( select * from emp where empid = 10);
    If there is a row in emp for empid=10, then you get back 1 from dual;
    This is what I call an 'optimistic' lookup because the WHERE EXISTS ends as soon as there is a hit. It does not care how many - only that at least one exists. It is optimistic because it will continue processing the table lookup until either it hits or reaches the end of the table - for a non-indexed query.

  • What is the difference between String Constant and Empty String Constant

    What is the difference between string constant which does not contain any value and the Empty string constant?
    While testing a VI which contain a normal string constant in VI analyzer, it gives error to change string constant with the empty string constant?
    Please Reply
    prabhakant
    Regards
    Prabhakant Patil

    Readability.
    Functionally, they are the same. From a coding standpoint, the Empty String Constant is unambiguous.
    It is empty and will always be; good for initialization. Also, because you can not type a value into and Empty String Constant, someone would need to conciously replace it to set a 'default' value that is something other than NULL.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • What's the difference between using a connection pool and a datasource

    Howdy. I figure this is a newbie question, but I can't seem to find an
    answer.
    In the docs at bea, the datasource docs say
    "DataSource objects provide a way for JDBC clients to obtain a DBMS
    connection. A DataSource is an interface between the client program and the
    connection pool. Each data source requires a separate DataSource object,
    which may be implemented as a DataSource class that supports either
    connection pooling or distributed transactions."
    In there it says the datasource uses the connection pool, but other than
    that, what is the difference between a connection pool and a datasource?

    Thanks for the info. I think it makes some sense. But it's a bit greek.
    I'm sure it'll make more sense the more I work with it. Thanks.
    "Chuck Nelson" <[email protected]> wrote in message
    news:3dcac1f5$[email protected]..
    >
    Peter,
    Here is a more formal definition of a DataSource from the Sun site
    "A factory for connections to the physical data source that thisDataSource object
    represents. An alternative to the DriverManager facility, a DataSourceobject
    is the preferred means of getting a connection. An object that implementsthe
    DataSource interface will typically be registered with a naming servicebased
    on the JavaTM Naming and Directory (JNDI) API.
    The DataSource interface is implemented by a driver vendor. There arethree types
    of implementations:
    Basic implementation -- produces a standard Connection object
    Connection pooling implementation -- produces a Connection object thatwill automatically
    participate in connection pooling. This implementation works with amiddle-tier
    connection pooling manager.
    Distributed transaction implementation -- produces a Connection objectthat may
    be used for distributed transactions and almost always participates inconnection
    pooling. This implementation works with a middle-tier transaction managerand
    almost always with a connection pooling manager.
    Does that help clarify the distinction?
    Chuck Nelson
    DRE
    BEA Technical Support

  • What is the difference between   nvl(sum (field), 0) & sum(nvl (field,0)) ?

    What is the difference between nvl(sum (field), 0) & sum(nvl (field,0)) ?
    For the below table data i don't see any different in results
    CREATE TABLE FRUITS
    TYPE VARCHAR2(10 BYTE),
    VARIETY VARCHAR2(10 BYTE),
    PRICE NUMBER(18,2)
    TYPE     VARIETY          PRICE
    apple     gala          2.79
    apple     fuji          0.24
    apple     limbertwig     2.87
    orange     valencia     3.59
    orange     navel          9.36
    pear     bradford     7.77
    pear     bartlett     7.77
    cherry     bing          2.55
    cherry     chelan          6.33
    pear     bradford     
         navel          6.39
    select variety, nvl(sum(price),0)
    from fruits
    group by variety;
    VARIETY     NVL(SUM(PRICE),0)
    limbertwig     2.87
    bartlett     7.77
    bing     2.55
    marathon     0
    gala     2.79
    fuji     0.24
    navel     15.75
    bradford     7.77
    chelan     6.33
    valencia     3.59
    select variety, sum(nvl(price,0))
    from fruits
    group by variety;
    VARIETY     SUM(NVL(PRICE,0))
    limbertwig     2.87
    bartlett     7.77
    bing     2.55
    marathon     0
    gala     2.79
    fuji     0.24
    navel     15.75
    bradford     7.77
    chelan     6.33
    valencia     3.59
    no difference in output.
    what is the difference?
    Thanks in advance

    Do you see the difference now?
    PRAZY@11gR1> create table testing(field number);
    Table created.
    Elapsed: 00:00:00.10
    PRAZY@11gR1> insert into testing select null from dual connect by level<=5;
    5 rows created.
    Elapsed: 00:00:00.00
    PRAZY@11gR1> select * from testing;
         FIELD
    Elapsed: 00:00:00.01
    PRAZY@11gR1> select sum(nvl(field,1)) from testing;
    SUM(NVL(FIELD,1))
                    5
    Elapsed: 00:00:00.00
    PRAZY@11gR1> select nvl(sum(field),1) from testing;
    NVL(SUM(FIELD),1)
                    1
    Elapsed: 00:00:00.00In the former, we are substituting 1 to null value and summing-up. hence we got 5. in the later, we are summing-up the null, which is null and substituting 1 if the result is null. so we got 1.
    Regards,
    Prazy

  • What's the difference between Application ID and Product ID for WP App?

    Anyone know what's the difference between the Application ID on Marketplace and the
    Product ID in WMAppManifest.xml?  Can I get the Application ID before I sumbit the app to Marketplace? Thank you.

    Hello the ApplicationID is the ProductID on the WMAppManifest.xml, when you create a new project, a generic
    ProductID is assigned to your app, and once you send your app to the store, the generic
    ProductID is replaced with a new one (which will be assigned permanently to your app
    unless you do a new App Submission, which means each update will have that same ID). AFAIK once your app is certified you'll get the ApplicationID, you can send it and publish it manually, so you could
    have the AppID before people start downloading the app.
    (if you need the AppID for testing IAP, you may want to try sending your App as a Beta version)
    I hope it helps
    Yassine,
    Now I think I understand them, thank you!

  • What's the Difference Between Flash Player and Shockwave?

    Hi,
    I was wondering what's the difference between Flash Player
    and Shockwave? And how do you know which one isn't working? I
    downloaded and installed Flash Player successfully but it did say
    that the plug ins might be in another file and may not work
    properly. There is one game that will work, but most everything
    else doesn't. I don't get pictures (like adverts, ect.) in my
    email. What is the problem?

    I have found this site helpful. Adobe has a "Test Adobe
    Shockwave & Flash Players" site. Here is the address:
    http://www.adobe.com/shockwave/welcome/

  • What's the difference between 6.x and 7.x of labview?

    What's the difference between 6.x and 7.x of labview?

    Hello,
    I recommend you to read the "Labview upgrade notes" for LV 7.0. This gives you a short but fast overview of the new features of LV 7.0:
    http://digital.ni.com/manuals.nsf/webAdvsearch/E8D86CD680B0753D86256D2C005D8EA0?OpenDocument&vid=niwc&node=132100_US
    Of course you can download an evaluation version of LV 7.0 to test it yourself:
    http://www.ni.com/labview/
    Regards,
    Luca
    Regards,
    Luca

  • What is the difference between aurora and firefox browsers?

    What is the difference between Firefox 9 and Aurora? Which one performs better?

    The Aurora builds are for testing code for future Firefox version. The Nightly builds (currently Firefox 12) always get the latest changes and patches first and such changes bubble down to other Firefox versions with a delay of about six weeks, first to the Aurora channel (currently Firefox 11) and then another 6 weeks later to the Beta channel (currently Firefox 10) that then gets the next release (Beta goes to release at the end of January). Normal users should always stay on the release channel.
    *http://www.mozilla.org/en-US/firefox/channel/
    * http://kb.mozillazine.org/Testing_pre-release_versions

  • What is the difference btw Oracle bpm 10gr3 vs albpm 6.0.5 version

    What is the difference btw Oracle bpm 10gr3 vs albpm 6.0.5 version
    Are the build number common to them?

    Projects built in ALBPM 6.0 can be used directly in Oracle BPM 10g, but the reverse is not true.
    It's sometimes thought that Oracle BPM 10g was just a relabeling of the predecessor BEA product ALBPM. This is not the case.
    In Studio, standards are better supported:
    <li> By default, new processes now use horizontal swim-lanes. You can change the swim-lanes orientation individually for each process. You can define the default orientation for each project and for your Studio installation.
    <li> It uses more sophisticated BPMN icons. BPMN is the new default process diagram theme. BPMN constructs now include Gateways (AND, OR (new in 10g), XOR, Multiple Instance (previously Split-N)). A new Timer event was added. Loop conditions for automatic activities and groups were added.
    <li> Studio now supports Mac/OS 10.4 Tiger and Mac/OS 10.5 Leopard.
    <li> Studio now supports Windows Vista.
    <li> Studio now supports CVS and Subversion version control systems.
    <li> The Studio UI incorporates Eclipse 3.3 improvements such as the following:
    <li> New Minimize/Maximize behavior: When minizing view stacks in Studio, the view icons are placed on the nearest trim area. If a view is maximized, all other views are minimized, rather than hidden.
    <li> Interactive tasks provide a new "previewable" property. The new Application Display Panel and Task Execution Panel of WorkSpace automatically start the execution of previewable tasks without locking the process instance. Enabled by default for Dashboards.
    <li> New type of Activity: Time Activity. A process instance that arrives to this activity just sits idle until a timed event occurs.
    <li> Option Process Notification Immediately on Termination Wait activities has been deprecated. Now both the Wait activity and the first activity in the interruption flow always execute in the same transaction.
    <li> Although I'm not wild about it, there is an auto-layout feature re-arranges all visual elements of a process diagram automatically, minimizing superpositions and aligning the flow as much as possible. Only available for processes with horizontal lane orientation.
    <li> New process property (Greedy Execution Mode) indicates the Process Execution Engine to collapse contiguous automatic tasks in a single transaction. This mode of execution provides better performance for some processes. Disabled by default.
    <li> A new Process-Level debugger allows developers to introduce breakpoints and debug complete processes running in Studio. When the execution reaches a breakpoint, the Engine pauses and Studio's debugging view appears. You can inspect variables, add new breakpoints, resume and continue execution.
    User Interface
    <li> The Business Analyst and Business Architect profiles provide a simpler set of menu options and toolbars.
    <li> New editor for BPM Object Presentations. It's easier to use, provides a WYSIWYG drag and drop interface, improved CSS support and a new Drag & Drop toolbar.
    <li> You can now interrupt a running Simulation started with the Run to the End button.
    <li> New BETWEEN operator added to Business Rules editor (on both Studio and WorkSpace). This operator works with Time and numeric types.
    <li> The Documentation View now displays read-only documentation for the standard Fuego.* components.
    <li> New on-line help book Oracle BPM Components Reference provides reference documentation for the standard Fuego.* components. Only available for the developer profile.
    <li> This version introduces Project Dependency, which allows you to re-use components and role definitions from a common base project.
    In the WorkSpace:
    <li> WorkSpace has an edit mode which allows users to change and save the configuration and layout of panels.
    <li> A new tabbed interface allows you to define multiple pages, each with its own set of panels. You can export the layout configuration to an XML file and re-import it on a different environment or as a different user. Administrators can define layouts for all users in a certain Role.
    <li> You can export the data in the Worklist panel to a PDF or CSV
    <li> You can see an OOTB chart representation of the distribution of items in the Worklist panel.
    <li> WorkSpace includes the following new panels: Task Panel: Renders the execution of interactive tasks within the panel, instead of using the default modal dialogs. Dashboard Display Panel: Provides a way to display Dashboards within a Panel. View Chart Panel: Provides predefined graphical reports about process performance, work items distributions and workload. Application Panel: This panel contains an application (the execution of a Global Interactive). Applications can respond to work item selections or run independently.
    <li> The user can now do re-assignment operations on multiple instances at once.
    <li> The Business Rules editor shows additional auditing information, including who and when a rule was modified.
    <li> WorkSpace now (optionally) stores session-specific information as client-side cookies. This allows load-balancing on a cluster environment without affecting the user experience.
    Integration:
    <li> New timeout property added to external resources of type HTTP Server. Use this setting to control timeouts on web service invocations.
    <li> Authentication information added to external resources of type JMS (Java Messaging System)
    <li> Processes exposed as Web Services can now provide a runProcess operation, which synchronously executes the complete process (from begin to end). Only meaningful on fully automated processes.
    Enterprise:
    <li> New Ant tasks to rebuild the Oracle BPM web applications for container-security.
    <li> Configuration Wizard adds option Generic JNDI to the list of available LDAP servers. When using this option, you must provide a custom configuration file defining the mapping of object classes, attributes and filters. This new feature is also the new mechanism for integrating with AquaLogic Interaction 6.5, replacing the old Identity Service.
    <li> Configuration Wizard can now be run without user interaction ("silent mode"). You specify all configuration values in an XML file.
    <li> Oracle BPM client applications (including WorkSpace, PAPI-WS and custom PAPI apps) are now able to connect to multiple environments (BPM Directories) simultaneously.
    <li> Added Sybase as a new provider for the Engine database and BPM Directory database.
    <li> More information added for auditing of Business Rules, including who and when a rule was modified.
    <li> Updated bundled JDBC drivers to their latest version.
    <li> The Engine now logs warning messages when it detects rogue threads. A new preference allows the administrator to disable automatic re-starts when the Maximum Number of Rogue Component Executions is reached. In addition, in the case of an automatic re-start the Engine now logs a complete thread dump.
    <li> Simplified procedures for deploying BPM WorkSpace on WebLogic Portal. BPM Process Administrator now generates the WorkSpace EAR file as a WLP library module.
    <li> Authentication information added to external resources of type JMS (Java Messaging System).
    Dan

Maybe you are looking for

  • Moving Home folders onto external HDD, what's the right way to do it?

    At the moment I have my network accounts on the Server's boot disk, but I want to move them onto an external disk. I was thinking I should rsync the Users folder with the external, but do I then have to edit each account in Workgroup Manager to point

  • Backing up a macbook to a mini over the Internet w/ Time Mach.

    I have a Mac Mini at home and a MacBook. I need to backup my MacBook while on the road doing business. Is there a way to backup to my MacMini at home thru Time Mach. over Apple Remote Desktop? Is there a way to backup over the Internet thru an IP add

  • Report of bad Skype experience

    Hello, I' d like to make mention of somenthing he calls Him self bilalotje on skype Hi\m Bilal pulled himself off via webcam I cannot find this I should like to mention make gr Paulien

  • All pdf files open as a blank page after updating to 11.0.07.

    Ever since I updated to AR 11.0.07 in Windows 7 I get a blank page (empty gray box) when opening any pdf.  This happens whether the pdf was on my hard drive or received in email.  The files open just fine in other pdf programs and they used to open j

  • Printing applet display to file

    Help!! I need to print the results of an applet to a file as a jpeg, bmp, or any other format. How can I print the JPanel object to a file?