MySQL Forums
Forum List  »  Delphi

Re: error syntax
Posted by: mauro rr
Date: May 18, 2011 01:31PM

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

CREATE TABLE IF NOT EXISTS `histacoes` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`titular` varchar(8) NOT NULL,
`ativo` varchar(8) NOT NULL,
`data` date NOT NULL DEFAULT '0000-00-00',
`nota` varchar(8) NOT NULL,
`agente` varchar(10) NOT NULL,
`hist` varchar(4) NOT NULL,
`quant` int(11) NOT NULL DEFAULT '0',
`cota` decimal(10,2) NOT NULL DEFAULT '0.00',
`vrativo` decimal(10,2) NOT NULL DEFAULT '0.00',
`corret` float(10,2) NOT NULL DEFAULT '0.00',
`emol` decimal(8,2) NOT NULL DEFAULT '0.00',
`vrliquidocompra` float(10,2) NOT NULL,
`saldocompras` float(10,2) NOT NULL,
`vrliquidovenda` float(10,2) NOT NULL,
`precomedio` float(10,2) NOT NULL,
`custodia` decimal(8,2) NOT NULL DEFAULT '0.00',
`taxas` decimal(4,2) NOT NULL DEFAULT '0.00',
`baseir` decimal(10,2) NOT NULL DEFAULT '0.00',
`ir` decimal(10,2) NOT NULL DEFAULT '0.00',
`saldoqtd` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;


procedure transac.movimento;
begin
tabelas.THist.Open;
tabelas.THist.Insert;
tabelas.THistsaldoqtd.Value := eqsaldo;
tabelas.Thist.Post;
tabelas.Thist.Close;
end;

I use Delphi.



Edited 1 time(s). Last edit at 05/18/2011 05:45PM by mauro rr.

Options: ReplyQuote


Subject
Written By
Posted
May 17, 2011 06:51PM
May 17, 2011 07:40PM
May 17, 2011 08:21PM
May 18, 2011 09:32AM
May 18, 2011 03:28PM
May 18, 2011 09:54AM
Re: error syntax
May 18, 2011 01:31PM
May 18, 2011 04:13PM
May 18, 2011 05:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.