Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Whats wrong with this?

Whats wrong with this?

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aquarius171
    wrote on last edited by
    #1
    create table incoming_mac_records(Date_Received date, Received_by varchar(100), Delivered_by varchar(100), Invoice_number int, Purchase_Order int, Model varchar(1000), Specification (1000), Quantity int, Serial_number int, Sticker_number int, Asset_tag varchar(50), Warranty_expiry date, Issued_to varchar(100), Site varchar(100), Department varchar(100), Amount int,Date_inserted timestamp,insert_by varchar(100));
    
    the_T jsulmJ 2 Replies Last reply
    0
    • A Aquarius171
      create table incoming_mac_records(Date_Received date, Received_by varchar(100), Delivered_by varchar(100), Invoice_number int, Purchase_Order int, Model varchar(1000), Specification (1000), Quantity int, Serial_number int, Sticker_number int, Asset_tag varchar(50), Warranty_expiry date, Issued_to varchar(100), Site varchar(100), Department varchar(100), Amount int,Date_inserted timestamp,insert_by varchar(100));
      
      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @Aquarius171

      • how is this Qt related?
      • what is your question?

      -- No support in PM --

      A 1 Reply Last reply
      0
      • the_T the_

        @Aquarius171

        • how is this Qt related?
        • what is your question?
        A Offline
        A Offline
        Aquarius171
        wrote on last edited by
        #3

        @the_ ohh sorry i forgot to indicate i will use it on my qtsqltable view

        the_T 1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, perhaps Specification is missing a datatype...

          A 1 Reply Last reply
          0
          • A Aquarius171
            create table incoming_mac_records(Date_Received date, Received_by varchar(100), Delivered_by varchar(100), Invoice_number int, Purchase_Order int, Model varchar(1000), Specification (1000), Quantity int, Serial_number int, Sticker_number int, Asset_tag varchar(50), Warranty_expiry date, Issued_to varchar(100), Site varchar(100), Department varchar(100), Amount int,Date_inserted timestamp,insert_by varchar(100));
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Aquarius171 I guess you forgot the data type:

            Specification (1000),
            

            Before asking such questions (without even mentioning the error message!) you should take a closer look at your stuff by yourself instead of asking others to do it for you...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 2 Replies Last reply
            0
            • hskoglundH hskoglund

              Hi, perhaps Specification is missing a datatype...

              A Offline
              A Offline
              Aquarius171
              wrote on last edited by
              #6

              @hskoglund Thank you !!!! :))

              1 Reply Last reply
              0
              • A Aquarius171

                @the_ ohh sorry i forgot to indicate i will use it on my qtsqltable view

                the_T Offline
                the_T Offline
                the_
                wrote on last edited by
                #7

                @Aquarius171

                Maybe you should check for any error messages that will be generated when executing this.

                QSqlQuery::lastError() will tell you whats wrong.
                or you try to execute this query within your SQL tool (which sql database will you use?)

                -- No support in PM --

                A 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Aquarius171 I guess you forgot the data type:

                  Specification (1000),
                  

                  Before asking such questions (without even mentioning the error message!) you should take a closer look at your stuff by yourself instead of asking others to do it for you...

                  A Offline
                  A Offline
                  Aquarius171
                  wrote on last edited by
                  #8

                  @jsulm sorry

                  1 Reply Last reply
                  0
                  • the_T the_

                    @Aquarius171

                    Maybe you should check for any error messages that will be generated when executing this.

                    QSqlQuery::lastError() will tell you whats wrong.
                    or you try to execute this query within your SQL tool (which sql database will you use?)

                    A Offline
                    A Offline
                    Aquarius171
                    wrote on last edited by
                    #9

                    @the_ thank you sir for your time

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Aquarius171 I guess you forgot the data type:

                      Specification (1000),
                      

                      Before asking such questions (without even mentioning the error message!) you should take a closer look at your stuff by yourself instead of asking others to do it for you...

                      A Offline
                      A Offline
                      Aquarius171
                      wrote on last edited by
                      #10

                      @jsulm okay sorry thank you for your time

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved