A statement is the smallest standalone element of an imperative programming language. A program written in such a language is formed by a sequence of one or more statements. A statement will have internal components (e.g., expressions).

learn more… | top users | synonyms

1
vote
0answers
3 views

Error “could not execute batch command.[SQL: SQL not available]” after failed delete in NHibernate

After I delete an entity related to another record, this error occurs due to reference integrity: "The statement DELETE in in conflict with the constraint...etc" I manage this error with this code: ...
0
votes
4answers
33 views

Does reusing a Statement and Resultset release resources from its previous usage? Or do I have to explicitly close them before reuse?

Sample code: aStmt = aConn.prepareStatement(aQuery); cRset = cStmt.executeQuery(cQuery); while (cRset.next()) { //stuff to determine value of parm1 ...
1
vote
1answer
36 views

Using Alias In When Portion of a Case Statement in Oracle SQL

I've been trying to look up for awhile now if it's possible to use an alias stated earlier in the select statement if it can be used in a case later in the case statement for Oracle SQL. Most results ...
-1
votes
0answers
28 views

SQL Select for Quantity not in stock

So here are my layouts. Order Table SKU INSERTDATE QTY CHARGES abc 11/12/2012 1 14.50 abc 12/01/2012 1 14.50 abc 12/15/2012 2 29.00 abc 12/12/2012 1 14.50 abc ...
0
votes
3answers
47 views

If Statements in R, with a Data Frame

Suppose I have a data frame with several lines that look like: User Lab Score A 1 5 A 2 6 A 4 7 B 1 ...
-2
votes
1answer
40 views

returning data from if statement

This is prolly a stupid question, but I simply don't know how to phrase it correctly for me to google an answer .__. I'm handling data in an if statement, and would like to keep that data as an ...
1
vote
2answers
26 views

Filling additional columns of an internal table with additional data by SELECT statement? Can this be done?

SELECT matnr ersda ernam laeda FROM mara INTO CORRESPONDING FIELDS OF TABLE gt_mara UP TO 100 ROWS. At this point I have 100 entries in the itab gt_mara. SELECT aenam vpsta pstat lvorm mtart ...
0
votes
3answers
25 views

SQL Insert with intricate SQL

I had tried to use a insert into statement with a intricate sql command. I got two errors: Subqueries are not allowed in this context. Only scalar expressions are allowed." and "Incorrect syntax ...
0
votes
2answers
26 views

Actionscript 3 Removing multiple childs

Basically, I want to remove my play/pause buttons on a condition when someone goes to a new page, but at the same time, if my video is active, it will remove it as well. Currently this is my code to ...
1
vote
1answer
24 views

Insert using PreparedStatement. How do I auto-increment the ID?

I have a PrepatedStatement such as: PreparedStatement preparedStatement = connect.prepareStatement("INSERT into employee (id, time, name" + "(?,?,?)",Statement.RETURN_GENERATED_KEYS); ...
1
vote
2answers
38 views

How a discarded value can be used later in the program

About the expression statement(an example) i = 1; it is said that after assigning 1 to i the value of entire expression is being discarded. If the value is discarded then how this can be used ...
0
votes
2answers
22 views

C# ListView Item Image

How can i add a image (specified image) into listview with foreach statement for example: foreach(Video entry in videoFeed.Entries) { listview1.items.add(entry); listview1.items.image(imageURL); } ...
0
votes
1answer
36 views

Python executes my else even though my if statement is true

For some reason it wont go into my if statement. When I connect through netcat and I type my password it skips to the else statement even though I have typed in the correct password. ...
3
votes
2answers
97 views

While statement not working C

I'm learning C, and I'm trying to make a basic calculator, but having some trouble with the while statements. I've tried doing it multiple ways but it never repeats itself, just finishes the script. ...
0
votes
1answer
19 views

input prompt in a print statement python

in the following example print ("How old are you?" , input("please input")) when executing it, why is it that it asks for input propmpt before printing "How old are you?"? What is the order of ...

1 2 3 4 5 51
15 30 50 per page