Bangalore, June 2 (IANS) Karnataka Chief Minister B.S. Yeddyurappa Thursday won a trust vote in the assembly as the opposition Congress walked out and the Janata Dal-Secular boycotted the session.