很简单的有关问题

很简单的问题withADOQuery3dobeginifActiveThenCloseSQL.ClearSQL.Add( select*fromusersaccountwhereui

很简单的问题
with   ADOQuery3   do
          begin
                    if   Active   Then   Close;
                    SQL.Clear;
                    SQL.Add( 'select   *   from   usersaccount   where   uin= '+uin);
uin   interger
这个要如何写   我这样写出错


[解决办法]
SQL.Add(format( 'select * from usersaccount where uin=%d ',[uin]));