Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. insert into enduserdevicemap (fkenduser,fkdevice,defaultprofile,tkuserassociation)
  2. select enduser.pkid,device.pkid from enduser,device
  3. where enduser.userid = 1001, device.name like '%6%'
  4. values (enduser.pkid,device.pkid,'f','1')
  5.  
  6. INSERT INTO enduserdevicemap (fkenduser,fkdevice,defaultprofile,tkuserassociation)
  7. SELECT e.fkenduser,e.fkdevice,d.defaultprofile,d.tkuserassociation
  8. FROM enduser e,device d
  9. WHERE enduser.userid = 1001 AND device.name like '%6%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement