Questions tagged [field-names]
83 questions
0
votes
1 answer
Is there a query for Netezza (Toad Data Point) for finding all tables where a specific field name exists
I have the following query which works perfectly when searching for tables that contain a specific field name that I am looking for in an Oracle database
however it does not work in Netezza (Data Mart) when using the Toad Data point tool. Can…

ace123
- 35
- 1
- 7
0
votes
1 answer
How do I extract the Jackson property names from a java class when the serialization has been altered by annotation?
I have a somewhat odd problem. I have a system of data objects fo significant size, with a wide variety of properties. They're being serialized and deserialized with JSON, and in many cases, the field names have been altered by annotation. I have…

Ben Barden
- 2,001
- 2
- 20
- 28
0
votes
1 answer
Powershell dynamically move through field names and values
For all the fields and values, starting with "LOAD" and ending with Weight_KGS, I want to create one html table (2 columns: Description & Value/content). But I don't want to hardwire 22 lines of code (x 2)
My array looks as follows: (below is just 1…

Yoko Mani
- 9
- 1
0
votes
1 answer
Update many-to-many field in django by fieldname
I am building an API with Django that allows an external app to send posts to my API an then it inserts the received data into my database.
Here are my simplified models:
class Region(models.Model):
name = models.CharField(max_length=250)
class…

Sergio Ferrer Sánchez
- 310
- 3
- 19
0
votes
1 answer
Methods and field names should not differ only by capitalization (squid:S1845) false positive
I have a field name which is similar to static constant
public static final String MAIL = "mail";
private String mail;
I'm getting sonar warning:
`Methods and field names should not be the same or differ only by capitalization…

Ori Marko
- 56,308
- 23
- 131
- 233
0
votes
2 answers
How can I find the column which is used by LEAST() in mysql?
I get the least price from five columns by using this function in mysql:
field1: 9
field2: 10
field3: 6
field4: 15
field5: 55
select least(field1,field2,field3,field4,field5) as smallest from myTable;
So my result will be "6" (taken from field3).…

Marco
- 3,470
- 4
- 23
- 35
0
votes
2 answers
Handle field with same names but different table in Mapping
I have the following SQL:
select zcactcls.name "ACCOUNT_CLASS",
zcpatcls.name "PATIENT_CLASS",
zcsvc.name "SERVICE"
The name field is used multiple times by different tables. In the joiner, the fields are noted as name, name1, name2. It is hard…

QYT
- 9
- 7
0
votes
1 answer
How to map JSON field names to Java object field names
Currently, I'm creating REST Service with Spring.
My request handler in @RestController:
@RequestMapping(value = "employees/", method = RequestMethod.POST)
public Response setEmployees(@RequestBody Employee employee) {
Response response =…

catscoolzhyk
- 675
- 10
- 29
0
votes
2 answers
Python: different types of field name in string formatting
Consider the following dictionary:
dic1 = {1:'string', '1': 'int'}
Let's apply string formatting:
print("the value is {0[1]}".format(dic1))
result --> the value is string
but how can I get 'the value is int' as a result?

Afshin
- 487
- 6
- 22
0
votes
2 answers
How to check the fieldname before to write all values in csv file
I want to write a dictionary in csv file.
With for loop i write the fieldnames "keys" "i mean tittles of columns" in csv file
Desired is: before to write the values I want to control if values belong to the right filed in the csv file. I tried…

AhmyOhlin
- 519
- 4
- 8
- 18
0
votes
0 answers
ORA-00972 when use Japanese fields name
I have a oracle table with Japanese field name as "日本語項目分類カナ名称", when I select 日本語項目分類カナ名称 from myTable, I got error as below:
ORA-00972: identifier is too long
Cause: An identifier with more than 30 characters was specified.
Action: Specify at most…

mikezang
- 2,291
- 7
- 32
- 56
0
votes
1 answer
How to do preallocation in storing field variables in matlab
I am storing the field variables calculated in a for loop in a vector by appending the values, However I would like to preallocate first for performance. I tried to vectorize this operation but it does not give me what I would like to accomplish. I…

Johnny
- 43
- 6
0
votes
2 answers
Changing the order of headers in Firebird SQL
I am a novice at Firebird SQL.
Can anyone advise how I specify the order of field name in Firebird? If I change the name of the header, then it places that field at the end.
In another situation the field names appear differently in Excel that they…

Simon King
- 165
- 2
- 17
0
votes
1 answer
Dynamic field names in MongoDB using Mongoose
. Sample of collection Flights :
{
"Orig" : "AGP",
"Dest" : "CMN",
"Description_Flight" : "One-Stop-Narrow Type",
"Description_Flight_2" : "WESTERN EUROPE/WESTERN EUROPE",
"Mkt_Al" : "0B"
}
. Sample of…

Jean Dupont
- 177
- 1
- 13
0
votes
1 answer
It won't show name from parent table, only number or id
This is my query. It show results but instead of name of the day it shows only number or id. How to change it?
SELECT challenger, challenged, day_id, date_match, CONCAT(term_start,' - ',term_end)
AS term FROM barbara_schedule
INNER JOIN…

Barbara
- 1
- 10