mssqlcode

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • mssqlcode

    Halllo!

    Brauche hilfe muss mssql code in mysql code umwandeln wie geht das!!!

    /* This will create a table for use in storing Cricket data. This must be run
    * in a database called 'cricket' for the collector script to run properly.
    *
    * Set it up with your own size parameters. Cricket doesn't insert a large
    * amount of data and this is really only good for warehousing as there is
    * no kind of calculations or interpolation done - data is simply dumped from
    * Cricket into the DB.
    *
    * This will work with Microsoft SQLServer. I do not know if it'll work with
    * Sybase or any other type of database. If you have a version for another DB
    * please submit a patch so we can integrate it.
    */

    CREATE TABLE [dbo].[CricketData] (
    [targetPath] [varchar] (256) NOT NULL ,
    [targetName] [varchar] (256) NOT NULL ,
    [ds] [int] NOT NULL ,
    [value] [int] NOT NULL ,
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [TimeStamp] [datetime] NOT NULL
    ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[CricketData] WITH NOCHECK ADD
    CONSTRAINT [IX_CricketData] UNIQUE NONCLUSTERED
    (
    [TimeStamp],
    [ds],
    ) ON [PRIMARY]
    GO

  • #2
    Ja
    carpe noctem

    [color=blue]Bitte keine Fragen per EMail ... im Forum haben alle was davon ... und ich beantworte EMail-Fragen von Foren-Mitgliedern in der Regel eh nicht![/color]
    [color=red]Hinweis: Ich bin weder Mitglied noch Angestellter von ebiz-consult! Alles was ich hier von mir gebe tue ich in eigener Verantwortung![/color]

    Kommentar


    • #3
      Na dann fang mal an: http://dev.mysql.com/doc/mysql/en/create-table.html

      Kommentar

      Lädt...
      X