List:General Discussion« Previous MessageNext Message »
From:zzapper Date:September 23 2004 10:03am
Subject:A query to swap the data in two fields
View as plain text  
Hi,

I want to swap the data in two fields

eg
  t1.beds to t1.beds2
and
 t2.beds2 to t1.beds

Do i need to temporarily store one of the fields (thinking like a programmer)?

Can you suggest what query I need here pls?
zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips

Thread
A query to swap the data in two fieldszzapper23 Sep
  • Re: A query to swap the data in two fieldszzapper23 Sep
Re: A query to swap the data in two fieldsmos23 Sep
  • Re: A query to swap the data in two fieldszzapper23 Sep
Re: A query to swap the data in two fieldsBill Easton24 Sep