I know how to get all the MySQL results from a table and output it in Ruby with each
Results = con.query "Select from table" #come.chitch_hash | Line | $ Url = line ["url"] $ name = row ["linkname"] $ id = line ["id"] #end But how can I just delete a record?
You can use the fetch_hash on the result.
Example
Results = con.query "Select" from table "record = results.fetch_hash url = record [" url "] # etc fetch_row also returns an array of field values instead of a hash.
Comments
Post a Comment