» Home » syntax » Page 1
linq-to-sql joins with multiple from clauses syntax vs. traditional join syntax
by MadViking in Programming Languages

What the difference between writing a join using 2 from clauses and a where like this:


var SomeQuery = from a in MyDC.Table1
from b in MyDC.Table2
where a.SomeCol1 == SomeParameter && a.SomeCol2 === b.SomeCol1

and writing a join using the join operator.


This i


Code Syntax Highlighting in Delphi 6 (to highlight syntax and ifdef blocks)
by znotdead in Computers

Delphi 6 is pretty old, I know. Unfortunately there are reasons why I can't upgrade which I don't want to get into here.


My problem is that it's hard to read code. I have the Castalia plugin which helps a bit (parenthesis matching, shows blocks of if, else, end) but it doesn't highlight the syntax like other IDEs do (variables, constants, procedures, etc.) in different colors.


ORA-00905: Trouble converting Mysql/MMSQL syntax to oracle syntax
by dougbeal in Databases

Hi guys i'm having trouble running the below code on an Oracle DB not too sure why - getting ORA-905 error - missing keyword


This works fine on MSSQL and MYSQL.


Any indication as to how to fix will be much appreciated.


Cheers.


SELECT product.productId, product.version
FROM product
INNER JOIN (SELECT productId,

JSON array syntax. Are the curly brackets (object syntax) strictly necessary?
by dmxlite in Web Design

Is it possible for a json string to include only square brackets ? For ex. :


[["state","accepted"],["r_by_uid",1]]

I get unexpected character error from parsing that string ... (long time since i worked on this script and i think it worked before ) .


Parsing the json string will allways make an object from the string ? or is it possible to parse


Scheme macro expansion: Nesting let-syntax inside define-syntax
by Jesper in Programming Languages

I wish to expand


(foo x (f n) (f n) (arbitrary) (f n) ...)

into


(begin (x 'f n) (x 'f n) (arbitrary) (x 'f n) ...)

my attempt is:


(define-syntax foo
(syntax-rules ()
((_ l a ...)
(let-syntax ((f (syntax-rules ()
((_ n) (l (quote f) n)))))
(begi

Python syntax reasoning (why not fall back for . the way django template syntax does?)
by Jimmy G. in Coding

My karate instructor is fond of saying, "a block is a lock is a throw is a blow." What he means is this: When we come to a technique in a form, although it might seem to look like a block, a little creativity and examination shows that it can also be seen as some kind of joint lock, or some kind of throw, or some kind of blow.


So it is with the way the django template syntax uses


error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 1
by NoCreativity in Programming Languages

I have a table that lists all employees in the database but when I deleted all of them using $query = mysql_query("DELETE FROM $this->emp_tbl");


I got this error:


Sucessfully deleted!Database Failed: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near '-10,10


Linq query syntax to method syntax when using multiple joins to introduce dynamic restrictions
by pmaiorana in Programming Languages

I'm trying to translate a linq query using query keywords to the method syntax.
My ultimate goal is to be able to apply additonnal restrictions at runtime each time you see a Where clause in the query. I have a total of 14 different parameters to be applied. Some are mutually exclusive, other are inclusive.


Here is the starting query :


query = from p in context.P

Convert linq method syntax to query syntax
by ondrej in Programming Languages

Not that it would be better, but I'm trying to get my head around turning the following method syntax to query syntax to see the difference.


long diskSpace = Directory.EnumerateDirectories(@"c:")
.SelectMany(Directory.EnumerateFiles)
.Sum(fileSize => new FileInfo(fileSize).Length);

python utf-8 coding syntax error:invalid syntax
by Dennis in Development Tools & Services

Simply, i assigned a nested list to a variable named a and wanted to print it's len.Actually it is a simple python code but i couldn't make this code run :


# coding: utf-8
a = [[’bike’, ’2 * wheel+1* frame’], [’wheel’, ’1*rim+1*spoke+1*hub’], [’rim’, 60],
[’spoke’, 120], [’hub’, ’2*gear+1*axle’], [’gear’, 25], [’axle’, ’5*bolt+7

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .