Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts

    How empty Filed froma Tabel

    Hello

    I know how to Empty a Table from Mysql but how to empty a row or the filed from a Table . Example. this is my Table.

    PHP Code:
    CREATE TABLE `txt` (
    `
    idINT25 NOT NULL AUTO_INCREMENT PRIMARY KEY ,
    `
    fileVARCHAR255 NOT NULL ,
    `
    txtTEXT NOT NULL

    from that table i need to empty 'file' filed . useing Phpmyadmin Command.

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    That's a MySQL issue, not PHP. And you can't have an "empty" field because you've defined it as NOT NULL.
    Are you a Help Vampire?

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts
    That was an Example Table not the actual Table , anyway Somone Just passed the Command to me . its like

    PHP Code:
    UPDATE tblename  SET filedname=''
    Sorry i did not Pay attention there is Forum for MYsql even i been here long time , lol.. ..thx for point it out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •