Bruno Posted October 19, 2007 at 01:04 AM Report Share #141307 Posted October 19, 2007 at 01:04 AM O título diz tudo, existe algum modo de num update "pedir" para meter o valor default da coluna? É óbvio que sabendo o default posso colocá-lo eu, mas queria q fosse um processo automático. Obrigado pela ajuda 🙂 Link to comment Share on other sites More sharing options...
RVG Posted October 19, 2007 at 02:40 PM Report Share #141406 Posted October 19, 2007 at 02:40 PM boax .... nao sei se funciona em todas as versoes ... update TABELA set CAMPO=default where CONDICAO; Link to comment Share on other sites More sharing options...
Bruno Posted October 20, 2007 at 01:05 PM Author Report Share #141575 Posted October 20, 2007 at 01:05 PM Obrigado 🙂 Em mysql 5 funciona, ainda não testei no 4 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now