Guest User

Untitled

a guest
Oct 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. client.delegate = self
  2. client.connect("172.29.XX.XX:1433", username: "XX", password: "XXXX", database: "XXX", completion: {(success:Bool) -> Void in
  3. if success
  4. {
  5. client.execute("SELECT * FROM Users" , completion: {(results:NSArray) -> Void in
  6. for (table:NSArray in results)
  7. for (row:NSDictionary in table)
  8. for (column:NSString in row)
  9. NSLog(@"%@=%@", column, row[column])
  10. client.disconnect
  11.  
  12.  
  13. // how to execute second query?
  14. //query cannot enter inner query
  15. } )
  16. }
  17. })
Add Comment
Please, Sign In to add comment