for xml explicit

Posted by Zu on Jul 8, 2010 in SQL |
select 1 as tag,
null as parent,
user_id as [li!1!title],
name as [li!1]
from t_users
for xml explicit

comes out as:

<li title="1">user Name 1 </li>
<li title="2">user Name 2 </li>
<li title="3">user Name 3 </li>
etc.

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2007-2010 Xrum! Blog... All rights reserved.
Desk Mess Mirrored v1.5.1 theme from BuyNowShop.com.