Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysql]problem #1063 - Incorrect column specifier for column 'estimate_summary'
MWL
post
Post #1





Grupa: Zarejestrowani
Postów: 493
Pomógł: 32
Dołączył: 14.04.2008
Skąd: Lenkowski.net

Ostrzeżenie: (0%)
-----


  1. CREATE TABLE `kosztorysy`.`pencil_estimate` ( `estimate_id` INT( 255 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  2. `estimate_client` INT( 255 ) NOT NULL ,
  3. `estimate_date` INT( 25 ) NOT NULL ,
  4. `estimate_due` INT( 25 ) NOT NULL ,
  5. `estimate_currency` VARCHAR( 255 ) NOT NULL ,
  6. `estimate_country` VARCHAR( 3 ) NOT NULL ,
  7. `estimate_summary` FLOAT( 255 ) NOT NULL ,
  8. `estimate_user` INT( 255 ) NOT NULL ,
  9. `estimate_shippingCost` FLOAT( 255 ) NOT NULL ,
  10. `estimate_rabat` INT( 3 ) NOT NULL ,
  11. `estimate_notes` TEXT NOT NULL ) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci;



Wypada mi taki błąd: #1063 - Incorrect column specifier for column 'estimate_summary' i kompletnie go nie rozumiem. Mógłby mi ktoś wytłumaczyć w czym jest problem?

Ten post edytował MWL 28.01.2010, 22:39:26
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Szeszek1992
post
Post #2





Grupa: Zarejestrowani
Postów: 117
Pomógł: 29
Dołączył: 20.05.2009

Ostrzeżenie: (0%)
-----



MySQL allows a nonstandard syntax: FLOAT(M,D) or REAL(M,D) or DOUBLE PRECISION(M,D). Here, “(M,D)” means than values can be stored with up to M digits in total, of which D digits may be after the decimal point. For example, a column defined as FLOAT(7,4) will look like -999.9999 when displayed. MySQL performs rounding when storing values, so if you insert 999.00009 into a FLOAT(7,4) column, the approximate result is 999.0001.

Myślę, że zrozumiesz, w czym tkwi błąd;)

Ten post edytował Szeszek1992 28.01.2010, 22:43:34
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 17.12.2025 - 21:07