473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problema con l'INSERT di un campo vuoto

Ho notato che se lascio un text box vuoto ottengo un errore in fase
inserimento valori in una tabella (INSERT INTO)

string IDAzienda = CodiceIns.Text;

string Ragione = RagioneIns.Text;

string Indirizzo = IndirizzoIns.Text;

String SQLStatement="INSERT INTO anag_aziende (IDazienda,ragione,indirizzo)
"+

"VALUES ('"+IDAzienda+"', '"+Ragione+"','"+Indirizzo+"')";

se Indirizzo è vuoto non viene salvato il record e viene visualizzato un
errore

come posso evitare questo problema ??
Nov 18 '05 #1
0 1664

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Davide | last post by:
Perche' non riesco ad inserire immagini opiu' grandi di 1Mb in un campo LONGBLOB? Ha forse il limite di 1Mb il campo LONGBLOB? Se si, posso modificare tale limite? Per le immagini inferiori a...
0
by: Jorge Gallardo | last post by:
Hola a todos.. Vereis tengo un problemilla. necesito transferir de una tabla unos datos a texto, hasta aqui todo bien. Pero uno de los campos de esa tabla contine numeros, que pueden ser 1, 10,...
0
by: Sergio | last post by:
Olá pessoal Estou com um problema num relatório, quando mando imprimir ou visualizar um determinado relatório com um subrelatório que tem varios campos entre os quais quant, preço, total, fazendo...
1
by: g.magliozzi | last post by:
Ciao a tutti, dopo aver copiato dei record tramite una query di accodamento su una tabello ho la necessità di modificare un campo (che risulta vuoto) su tutti i records spostati. Come posso...
0
by: StellaAzzurra | last post by:
Salve, premettendo che non sono un esperta di access, vi pongo il mio problema. Sto facendo una rubrica con access ed avrei la necessità di fare in modo che se ad esempio un mio clienti avesse 5...
1
by: Juan | last post by:
Hola Grupo! Tengo el siguiente problema. Quiero desarrollar una aplicación ASP.NET con Visual Studio.NET y resulta que cuando quiero crear una me aparece el siguiente mensaje ...
0
by: | last post by:
Ho notato che se lascio un text box vuoto ottengo un errore in fase inserimento valori in una tabella (INSERT INTO) string IDAzienda = CodiceIns.Text; string Ragione = RagioneIns.Text; ...
7
by: Milos Prudek | last post by:
I need to insert a value = max(value)+1, where max is a select limited by a 'where' clause. Like this: INSERT INTO table (idthread, idsection,txt) VALUES ( (SELECT max(idthread)+1 FROM table...
1
by: teo_teo_teo | last post by:
ciao, in un campo "file" di un documento xml ho qualcosa del tipo ..\folder\file.pdf ovviamente nn posso cambiare il modo in cui il folder e il file sono visualizzti in quel tag perché il file...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.