Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help-Code Conversion
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
farshid....@gmail.com  
View profile  
 More options Nov 17 2012, 11:19 am
From: farshid....@gmail.com
Date: Sat, 17 Nov 2012 08:19:01 -0800 (PST)
Local: Sat, Nov 17 2012 11:19 am
Subject: Help-Code Conversion

Hi
I'm a Beginner., How can I use the following code SQLite?
Thank you

declare @id int, @price int,@price1 int, @sum int
set @sum = 0
DECLARE sum_cursor Cursor
FOR SELECT id, Pay,Cash FROM T1 ORDER BY SDate
OPEN sum_cursor
FETCH NEXT FROM sum_cursor
INTO @id, @price,@price1
WHILE @@FETCH_STATUS= 0
BEGIN
select @sum = @sum + (@Price-@Price1)
update T1 set RE = @sum where Id = @Id
FETCH NEXT FROM sum_cursor
INTO @id, @price,@price1
END
CLOSE sum_cursor
DEALLOCATE sum_cursor
select*from T1 ORDER BY SDate


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »