Home > database >  Database is essentially the variables in the problem
Database is essentially the variables in the problem

Time:11-14

Declare @ @ RowCount varchar (30) this statement is wrong in where?

Use the select and print print have to differ

CodePudding user response:

@ @ RowCount is system variables, don't need to declare
Print is print, select a table is returned

CodePudding user response:

Can select the output contains a large amount of data table,
Print is commonly used in the output debugging information,

Program calls, are generally not select, not print.

CodePudding user response:

Each has answered

CodePudding user response:

reference 1/f, sun flower reply:
@ @ RowCount is system variable, do not need to declare
Print is print, select is to return a table

Print @ @ version has a problem like this

CodePudding user response:

refer to the second floor of gypsy song response:
select can output contains large amounts of data table,
Print is commonly used in the output debugging information,

Program calls, are generally not select, not print.

Call @ @ version with the print output line

CodePudding user response:

Print @ @ version no problem.

CodePudding user response:

refer to 6th floor started the first response:
print @ @ version ok.

The answer is to use the select, don't need to print,... ah
  • Related