How to make counter in database

can i make a Coulomb in database  as a counter?
if yes please tell me how?
if no write a way from you and write a way in query of database
thank you

Can you explain further please?
When you say "counter", do you want this column to automatically increment when new data is inserted? If so, create an identity column in your table. To do this open the table in design mode, add a new column, as Manish suggests, avoid using keywords
as a name, use type int or bigger. Then scroll down the Column properties table and locate the "Identity Specification" section click on it to expand the tree and set Is Identity to Yes.
If you are trying to do something different please provide more detail. Saga.
Insanity is the prelude to discovery

Similar Messages

  • How to make structure of database Proprietary

    Hello
    I am really interested in how to obscure the structure of database and make it proprietary.
    thanks

    Hello,
    most LR users only use one catalog, which fine in most cases.
    Some professional photographers use one catalog per client (with one image folder per client).
    I know, this is no answer to your question, but perhapst you rethink your decision to have muliple catalogs. (Or explain, why you need them).

  • How to make an webapplication database independent.

    Dear All SDN's,
    I have developed an EJB appliction to call into portal.
    Calling into portal is the other part of this.
    But here what i want to be clear is, i have designed an webapplication which is database independent.
    i.e., like, to connect to any database in SAP J2ee Engine we need to configure the JDBC Connector of Visual administrator.
    I had configure the same in the visual administrator by adding an alias to the existing (System) datasource.
    when i try to access the datasource from the jsp using the following line,
    <b><sql:query dataSource="jdbc/ONLINE_SR_POOL" var="srtype">SELECT * FROM TMP_SR_TYPE</sql:query></b>
    it returns errors. Please advise what it goes wrong. All my web pages run ok from Oracle Application Service or Sun Application Server
    What do you suggest me to establish a database connection so that the JSP can query the data from the data tables? Should I use JavaBean instead of using<sql:query dataSource="jdbc/ONLINE_SR_POOL" var="srtype"> inside the jsp page?
    Tell me where i am going wrong.
    Your inputs will be appreciated,
    Regards,
    Sireesha.B

    Hi,
    Plz specify the errors, what r u getting and in which perspective......
    Thanks
    DKS

  • How to make a SQL database connection with a java code in netbeans?

    can somebody helpthrough an example

    raghu0007 wrote:
    can somebody helpthrough an exampleNetbeans is just an IDE.
    Anyway the JDBC tutorial may be found here http://java.sun.com/docs/books/tutorial/jdbc/index.html
    If you have a specific question please ask it.

  • How to make common database connection using bean, etc.

    anyone know how to make a coomon database connection because on my web pages each of them need to connect on the database for their specific objectives... please help
    regards
    blingbling
    Edited by: BlingBling15 on Oct 22, 2007 1:16 PM

    Making a 'common' connection and passing it around is a bad idea. And making a new connection on every page, as you seem to have already guessed, also involves an overhead that you can do without.
    Like drvijayj2k2 has mentioned, you should use connection pooling.
    Take a look at the Apache Commons DBCP [1] and it's examples [2].
    [1] http://commons.apache.org/dbcp/
    [2] http://wiki.apache.org/jakarta-commons/DBCP
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to duplicate by rman database?

    dear sir, i read one article and follow step and 2nd auxiliary database i delete all dbf, ctl, log(redo) files ...then tryying to create dubplicate giving me error
    can some one send steps of it
    rgds
    shahzad

    Database Duplication with RMAN
    Use the RMAN DUPLICATE command to create a copy of the target database that you can use for testing. The command restores backups and copies of the primary database's files and creates a new database.
    As part of the duplicating operation, RMAN manages the following:
    Restores the target datafiles into the duplicate database and performs incomplete recovery using all available archived log and incremental backups.
    Opens the duplicate database with the RESETLOGS option after incomplete recovery to create the online redo logs.
    Generates a new, unique database identifier for the duplicate database.
    Note also the following features of RMAN duplication. You can:
    Skip read-only tablespaces with the SKIP READONLY clause (read-only tablespaces are included by default). You can also exclude any tablespace with the SKIP TABLESPACE clause so long as it is not the SYSTEM tablespace and does not contain rollback or undo data. If you omit tablespaces, then you can add them later.
    Create your duplicate database in a new host. If the same directory structure is available, then you can use the NOFILENAMECHECK option and reuse the target datafile filenames for the duplicate datafiles.
    Create your duplicate database by using the SET UNTIL command or UNTIL clause of the DUPLICATE command to recover it to a noncurrent time. By default, the DUPLICATE command creates the database using the most recent backups of the target database and then performs recovery to the most recent consistent point contained in the incremental and archived redo log backups.
    Use the duplicate database without a recovery catalog.
    Register the duplicate database in the same recovery catalog as the target database. This option is possible because the duplicate database receives a new database identifier during duplication. If you copy the target database using operating system utilities, then the database identifier of the copied database remains the same so you cannot register it in the same recovery catalog.
    Figure 6-3 illustrates a case of database duplication. In this example, RMAN creates two duplicate database by using one set of datafile backups: one database on the local host and one database a remote host.
    Figure 6-3 Creating a Duplicate Database from Backups
    Text description of the illustration sbr81078.gif
    The method you use to duplicate your database depends on whether you are creating your duplicate database on the same or a different host and whether the duplicate directory structure is the same as your target database directory structure. For example, in some cases you can keep the same directory structure and filenames in your duplicate database, while other times you must rename the files.
    See Also:
    Chapter 12, "Duplicating a Database with Recovery Manager" to learn how to make a duplicate database, and Oracle9i Recovery Manager Reference for DUPLICATE command syntax.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc2.htm#462471
    Joel Pérez
    http://www.oracle.com/technology/experts

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to make the counter count or start at different time

    Hi,
    How to let the counter count the time, that doesn't start at the same time ?
    This timing system is a sport timing system for canoe competition, it need to track 6 competitor that start at different time .
    I have a problem , I have 6 counter in a VI that use to track 6 competitor, but it start count at the same time, how to make it count separately for each competitor ?
    Do you guys know how to solve this problem ?
    Solved!
    Go to Solution.
    Attachments:
    multi competitor.zip ‏50 KB

    HI, 
    ya, i run it. I mean i know how to make it to 6 competitor already , and yes, it works but the time, it still count or start at the same time. I  need to run each competitor at different time , like this competitor A 20-2-2012.VI . This is the one i do but it cant put a stop button. once i put a stop button, the clock stop counting but the whole VI is running.
    Regadrs,
    Sam
    Attachments:
    competitor A 20-2-2012.vi ‏139 KB
    3switch 3-2-2012.vi ‏14 KB

  • How to make database instances available in the SAP MMC

    Hello,
    I have been trying to figure out on how to make a database instance, which I installed on the MSSQL Server, available in the SAP Management Console in order to start the instance. I am able to view the instance over the Enterprise Manager of the MSSQL Sever, but I cannot start it from there (this is only possible from the SAP MMC). I have the SAP MMC installed on my computer, but just cannot figure out on how to control the instance from there because I cannot see it.
    I hope someone can help me on this matter!
    Thanks....
    Katharina

    Hello Katharina,
    Run SAP MMC and right-click to SAP R/3 Systems.
    Choose properties and go to Fixed tab.
    In 'System' field enter Your SID (e.g. EBP)
    In 'Instance' field enter hostname<space>instance number (e.g. epb01 10) Remember, there is space between ebp01 and 10.
    Click on 'Add' button and then OK.
    Best Regards,
    Marcin Gajewski

  • How can i count no rows in my database table

    plz tell me how can i count no of rows in my database table with[b] ResultSet object

    Hi ! hope this code helps you .
    We can use the count(*) to get the total no of records in the table ad then access it through the getString method .
    import java.sql.*;
    public class JdbcTest
         public static void main(String [] args ) throws Exception
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String DBURL = "jdbc:odbc:mydsn" ;
              Connection conn = DriverManager.getConnection(DBURL);
              Statement st = conn.createStatement();
              ResultSet rs = st.executeQuery("select count(*) from table1");
              rs.next();
              System.out.println("total rec = " + rs.getString(1));     
    Cheers !

  • How to make a physical standby database in the read_only state in 11g?

    In 10g, we can make a physical standby database in the read_only state. But in 11g, no a read_only state for a physical standby database. How to make a physical standby database in the read_only state in 11g?

    Hi
    read-only mode (for 11g physical standby)
    A mode in which a database can be opened that allows queries, but disallows modifications.
    A physical standby database can be opened read-only so that queries may be performed. If a license for the Oracle Active Data Guard option has been purchased, a physical satndby database can be open while redo apply is active. This capability is known as Real-time Query.
    For more details have a look at:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#SBYDB00706
    Hipe this Helps
    Regards

  • How to make new database connection using Oracle BI Interactive Dashboards

    Hi,
    I install Oracle BI Intelligence on my system.
    I am using Oracle BI Interactive Dashboard. Here we have default database connection.
    but now i want to use it for my own database. Can any body give me guideline how to
    make a new data base connection using this s/w or how to connect to my database so
    that i can make my own reports.
    I am using
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    this link.
    i make odbc connection which is fine.
    but
    Restoring the Business Intelligence Presentation Catalog and Updating Metadata
    The third point blow above heading is not clear.
    Thanks

    Umesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
    All these tasks are carried out using the Repository Administration Utility.
    1) Import your physical tables using OCI/ODBC into the physical layer.
    2) Build your model
    3) Deploy
    Then you're ready to start building answers/dashboards.
    Good Luck.

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • How can I make a recurring database

    I am having a problem ? Oh having a to make a recurring database for work. I have to have a name and medication of what they take and have a database for the information that I can give to administration.

    Someone might be able to help, but they'd need enough information to understand what your question is. So far you've not provided that.
    Regards,
    Barry

  • How to make automatic counting number while printing

    i've create an Order Form using InDesign then i want to print it.. how to make increase document number run automaticaly while printing?? thx for your help

    Form numbering can be done in a variety of ways. For high volume jobs (or small jobs, too if you happen to own a numbering machine) the numbers are often printed separately after the forms themselves are printed.
    The next most efficient method is to use a printer with variable data capabilities that can pull the numbers from an external file and add them to the print job as it runs.
    The only way to do it directly in InDesign is to make a multipage file -- one page for each number. To do that you will need a list of numbers as a text file, one number per line. You can use this file either for a Data Merge or you can place it like any other text file. Which method is best will depend on the job itself. In either case, I would recommend putting all of the repeating text on the master page. For data merge, leave a hole where the numbers belong and apply the master AFTER you do the merge. For placing, include a frame to hold the number on the master page, apply it to page one, and use autoflow.

Maybe you are looking for