On Sep 25, 2011, at 10:53 PM, 守株待兔 wrote: > there are tow column x1,x2 in table t ,all real > alter table t add column c1 real; > select x1+x2 as c1 from t; > there ara output in my screen,but in the database, > c1 column has no value,how can i make the value of c1 column =x1+x2?
UPDATE t SET c1 = x1 + x2; That said, you have a basic misunderstanding of SQL, so some tutorials, many freely available on the internet, would help. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users