tanhaha_how
01-11-2007, 10:01 AM
hi,i have a prob here....for eg,
SELECT name, birth, CURDATE(),
-> (YEAR(CURDATE())-YEAR(birth))
-> - (RIGHT(CURDATE(),5)<RIGHT(birth,5))
-> AS age
-> FROM table;
can i change the SQL statement above to INSERT statement....????it is bcoz i hav the prob when i jz use SELECT statement....is it possible to use the statement above n apply to INSERT statement????
thank u
SELECT name, birth, CURDATE(),
-> (YEAR(CURDATE())-YEAR(birth))
-> - (RIGHT(CURDATE(),5)<RIGHT(birth,5))
-> AS age
-> FROM table;
can i change the SQL statement above to INSERT statement....????it is bcoz i hav the prob when i jz use SELECT statement....is it possible to use the statement above n apply to INSERT statement????
thank u