https://livingpraying.com/g79ejiqsv Nestes dias atrás apanhei neste problema simples. =] Então como minha decisão de criar este blog ser para catalogar conhecimento proprio decidi escrever aqui a solução para nunca mais esquecer. Um campo long deveria permitir que você insira mais de 4000 caracteres, porem se vc tentar isto no sqlplus você irá receber este erro em tela.
https://technocretetrading.com/dho3cw6l8m ORA-01704: string literal too long
https://www.drcarolineedwards.com/2024/09/18/mdv2ubd Conforme abaixo.
https://luisfernandocastro.com/qq31jff SQL> CREATE TABLE LANA.TESTE_LONG ( 2 nr_linh NUMBER(5,0) NOT NULL, 3 ds_linh LONG NULL 4 ); Table created. SQL> Insert into LANA.TESTE_LONG values ( 1, 2 '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 3 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 4 ... 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 39 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'); '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * ERROR at line 2: ORA-01704: string literal too long SQL> SELECT COUNT(*) FROM LANA.TESTE_LONG; COUNT(*) ---------- 0
Buy Diazepam Online London Para resolver este erro sugiro jogar o campo long para dentro de uma variavel e fazer o insert com a variavel conforme abaixo.
enter SQL> declare 2 ww_TEXTO LONG; 3 4 BEGIN 5 6 ww_texto := 7 '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 8 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 9 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 10 ... 41 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 42 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 43 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; 44 45 46 47 48 Insert into LANA.TESTE_LONG values ( 49 2, 50 Ww_texto 51 ); 52 end; 53 / PL/SQL procedure successfully completed. SQL> SELECT COUNT(*) FROM LANA.TESTE_LONG; COUNT(*) ---------- 1 SQL>
see url Observe que a linha foi criada.
Autor: Leandro Lana
watch Trabalho com banco de dados Oracle desde 2006, já trabalhei com as plataformas 9i, 10G, 11G, 12C, 18C, 19C e 21(ainda em testes).
https://everitte.org/bgaavvt Trabalhando atualmente como consultor Oracle na MigraTI Soluções em TI como administrador de banco de dados Oracle, SQL-Server, MySQL e Postgresql.
https://www.fandangotrading.com/9l6xxwdex source site Contato: leandro.lana@migrati.com.br
https://boxfanexpo.com/sp3ayk2og Fone: (47) 9191-6052 / (47) 3328 0996
https://trevabrandonscharf.com/1ekcc2h98 click Certificações:
https://www.thoughtleaderlife.com/drdbegy OCA 10G.
Buy Diazepam Next Day Review OCP 10G.
Buy Valium From India OCE Linux.
https://everitte.org/h17xupdzho OCE RAC/Cluster.
go here MCP SQL-Server 2008.
Buy Valium Prescription Free MCITP SQL-Server 2008.
https://ragadamed.com.br/2024/09/18/0p5licz DB2 Fundamentals.
https://livingpraying.com/9400m5r3i Isso só irá acontecer no sqlplus ou pode ocorrer via programa, tp delphi ou vb para inserir o registro?
Já chegasse a pegar algo assim?
go to link Sim.
isso ocorria no delphi. Já no pl/sql isso não ocorre pois o PL/SQL camufha a solução.
No VB e em algumas outras tecnologias eu não testei.