Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10519

Re: How to navigate through a cursor?

$
0
0

Hi Ben,

 

but what is the relationship model between the user and the color tables?

I mean, given an user XYZ, how do you derive which default color should it be presented with?

 

Which fields do you have in the color table?

If it's something like country/gender/department..., then I suppose you do something like:

 

for each user in user_table

   update user_table set user_color = color_color

      where user_cty = color_cty, user_gdr = color_gdr, user_dept = color_dept

 

??

 

If so, why not do a left or inner join of both tables and then persist the result?


Viewing all articles
Browse latest Browse all 10519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>