UPDATE tablo hedef, (select left(baslik, 1) as harf, id from tablo) kaynak SET hedef.kategori = kaynak.harf WHERE hedef.id = kaynak.id;