I need to insert data into another table using stored procedure that looks something like this:
CREATE PROCEDURE T.countnum
AS
Insert into T1 values(select count(*) from T.countTable)
But it isn’t working I saw several example but not with selection. Any example?
or
And you should specify the column to count likeselect count(id) from T.countTable