Jump to content

SQLSTATE[01000]: Warning: 1265 Data truncated for column 'compra' at row 1


John Hebert Trindade
Go to solution Solved by F3N1X,

Recommended Posts

Boa noite a todos,

Tenho um projeto para cadastro de produtos,

existem dois campos (valor de compra e valor de venda) que são em euros, ou seja, por exemplo 300.0€

Já coloquei na Base de dados MYSQL o tipo "decimal" e "int" mas recebo o seguinte erro:

SQLSTATE[01000]: Warning: 1265 Data truncated for column 'compra' at row 1

Que tipo devo utilizar?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.