SQLQuery1.sql 509 B

123456789101112
  1. 
  2. insert into Companies (CreateDate, UserId, CompanyName, CRNumber, TaxNumber, IsDeleted,[Address], Email, PhoneNumber, CityId, CountryId, IsSuspended, PostalCode)
  3. select GETDATE(),UserId, CompanyName, CRNumber, TaxNumber, 0,[Address], Email, PhoneNumber, CityId, CountryId, 0, '11111' from companies
  4. select * from companies
  5. select CompanyId, usertype,* from AspNetUsers
  6. update AspNetUsers set CompanyId=30010 where id in ('ec412375-f6fc-4dde-8e01-5bf64305a259','a0908fe0-7951-4149-b62f-aaad7f63a492')