declare Questions
3
Solved
How can I declare a variable in a table valued function?
Rondeau asked 12/7, 2011 at 8:38
5
Solved
I am trying to define and initialize a MySQL variable for a query.
I have the following:
DECLARE @countTotal INT;
SET @countTotal = SELECT COUNT(*) FROM nGrams;
I am using MySQL in Netbeans and it...
Pleurodynia asked 2/12, 2012 at 15:24
2
Solved
There is an almost identical, but not really answered question here.
I am migrating an application from MS SQL Server to PostgreSQL. In many places in code I use local variables so I would like to...
Charitacharitable asked 1/7, 2010 at 12:30
9
I read that the pow(double, double) function is defined in "math.h" but I can't find its declaration.
Does anybody know where this function declared? And where is it implemented in C?
Reference:...
8
Solved
I'm coding a small program to time and show, in a ordered fashion, my Rubik's cube solvings. But Python (3) keeps bothering me about times being used prior to global declaration. But what's strange...
Crusty asked 20/1, 2010 at 22:43
4
Solved
I am trying to declare local variable like:
DECLARE @thresholdDate DATETIME = '2014-11-30'
And I am getting error:
Cannot assign a default value to a local variable.
As per documentation:
...
Oophorectomy asked 21/11, 2014 at 11:42
2
Solved
In SQL Server (2018 I think? I don't know how to tell) my variable isn't working in WHERE clauses for NVARCHAR. The comparison should return values but it returns nothing. If I just type the declar...
Came asked 18/11, 2022 at 2:46
2
Solved
Is there any way to declare variable in if statement (using ANSI C only) ?
Example:
if(int variable = some_function())
{
return 1;
}
Hagar asked 26/4, 2017 at 19:51
6
Solved
I want to declare multiple variables in a function:
function foo() {
var src_arr = new Array();
var caption_arr = new Array();
var fav_arr = new Array();
var hidden_arr = new Array();
}
Is t...
Dryad asked 2/11, 2010 at 22:13
3
Solved
I am trying to create and set a variable:
DECLARE myId INT;
SET myId = 5;
However, I am getting invalid syntax complaint in MySQL Workbench:
SQL syntax error near 'DECLARE myId INT;'
I have...
Heterocyclic asked 30/1, 2014 at 18:35
4
Solved
I am creating a view that is using that STUFF function. I want to put the result of STUFF in a variable for my view. The problem I am having is declaring my variable. It gives me the message "Incor...
Brinn asked 25/11, 2016 at 16:32
2
Solved
On the declare() page of the PHP manual:
Encoding
A script's encoding can be specified per-script using the encoding
directive.
Example #3 Declaring an encoding for the script.
<?php
...
4
Solved
Can some one explain the differences between the following two cases (specifically what the comments are saying if for me not understandable) which come from the CLHS on function:
;; This function...
Polythene asked 6/2, 2020 at 21:53
11
Solved
I´d like to SELECT a single value into a variable. I´d tried to following:
DECLARE myvar INT(4);
-- immediately returns some syntax error.
SELECT myvalue
FROM mytable
WHERE anothervalue = 1...
Clerihew asked 19/6, 2010 at 10:21
2
Solved
15
I have a variable which is an array and I want every element of the array to act as an object by default. To achieve this, I can do something like this in my code.
var sample = new Array();
sample...
Atrophy asked 1/4, 2013 at 11:19
10
Below is an example of using variables in SQL Server 2000.
DECLARE @EmpIDVar INT
SET @EmpIDVar = 1234
SELECT *
FROM Employees
WHERE EmployeeID = @EmpIDVar
I want to do the exact same thing in ...
2
Solved
How could I declare a third party module which looks like this:
in third party module:
module.exports = function foo(){
// do somthing
}
in my code:
import * as foo from 'foo-module'; // Can ...
Nic asked 18/5, 2017 at 21:32
3
Solved
As you know we have a new syntax in vb.net with possibility to create inline tasks so we could run it asynchronously.
This is the correct code:
Dim testDeclaring As New Task(Sub()
End Sub)
te...
Kevel asked 20/4, 2013 at 11:34
1
Solved
I have come across some code like this:
declare type A = { ... };
declare interface B { ... }
From searching for the declare keyword (and none of the hits pointed to me the TypeScript docs for s...
Winthorpe asked 7/3, 2018 at 15:54
1
Solved
Short and sweet, is it better practice to define my own interfaces with declare or with export?
// i.something.d.ts
export default interface ISomething {
myValue: string;
}
// something.ts
impo...
Gallaway asked 8/2, 2018 at 16:40
2
Solved
On Windows the declared function RtlMoveMemory provides a way to copy a block of bytes from one address to another:
Private Declare PtrSafe Sub RtlMoveMemory Lib "kernel32" ( _
ByVal dest As Long...
1
Solved
Problem
Sourcing the result of declare -p for a valid Bash associative array in which keys contain square brackets results in a bad array subscript error.
Testing Procedure
Do:
$ declare -A arr...
Vegetarianism asked 13/8, 2017 at 21:45
2
Solved
I have a problem with my a bash script. What I do is assign variables like this.
for ((i=START;i<=END;i++)
declare var$i=$(something)
done
And it works, but now I have a problem with finnish...
2
I'm trying to declare and append to an array in a bash script, after searching i resulted in this code.
list=()
list+="string"
But when i echo this out it results in nothing.
I have also tried a...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.