I include in a array
, data entered by the user. But, I only use a array
to store data from two fields, where I use "P" (and the data entered) for the first field and "S" (And the data entered) to the second field. So the data gets out of order in array
. Example:
array_dados=[P01000213, P154878946, S797465464,P454464654,S48897874, ...]
So, I would like to store the table do banco
information in%%. But, "P" and "S" are different fields in array
and I only use the letters before the numbers to know which fields they will go to!
My question ... How to remove these letters ( P and S ) and store the data in their proper fields in the table?
Table I need to store the fields:
CREATE TABLE sai_info_dados
(
seq_info integer NOT NULL DEFAULT nextval('sam_cad_info'::regclass),
tx_num_prim character varying(12) NOT NULL,
tx_num_secu character varying(15) NOT NULL
)