Questions tagged [field-names]

83 questions
0
votes
4 answers

List field names where value of field is '1' and id=$id

I have a table 'jobs' with fields id,p1,p2,p3 where some entries under p1,p2,p3 have a value of '1'. How might I get a simple list of fields (p1,p2, or 3) which have a value of '1' in rows of table jobs where id=$id.
-1
votes
1 answer

My code works even though I didn't put the dictionary key / fieldnames in the CSV file

import csv phone = input("Enter phone name") os = input("Enter OS") with open("phos.csv", "a") as phos: phos_dict = csv.DictWriter(phos, fieldnames = ["phone_model", "phone_os"]) phos_dict.writerow({"phone_model": phone, "phone_os":…
-1
votes
1 answer

How to change the field name by using existing header row name of the table; Google BigQuery platform

enter image description heremy dataset are from google drive in csv format, already uploaded into BigQuery. (sandbox version) and I found out that the existing header row are not detected automatically. also the table have null row as gap/space and…
-1
votes
1 answer

RDS table opened in RStudio. How do I find field Names?

As in the header, I have opened an RDS table in R Studio, and need to know the field names within that table. But I don't know the correct command or syntax to follow this: UK_2001 <- readRDS("D:/Census_History/Postcodes/2001_05_MAY_AFPD.rds") Any…
Bruce Mitchell
  • 159
  • 2
  • 14
-1
votes
3 answers

Printing field names where value is 1, separated by comma

I have a table used for checkboxes where values are either 1 or 0. I'm having an issue printing column names for the selected row where the field value is equal to 1 (excluding any row equal to 0) and separate by comma, using implode. I've tried…
Klav
  • 405
  • 1
  • 9
  • 19
-1
votes
1 answer

mongoimport how to determine field names

i have a .csv file that holds person datas.A line for a person like this. "20781","IN","Ms.","Roy","","Serrano","2002-04-16 00:00:00","20781@adventure-works.com" How can i give field names to mongoimport? Field names ->…
mekafe
  • 596
  • 4
  • 13
  • 32
-2
votes
1 answer

REFLECTION: Getting the field from a class without the name

I want to get the java.lang.reflect.Field of (Eg. Object.field1), but my program is going to be obfuscated. I can't use the name of the field, but I just want to get it by that reference. I also don't want to cycle through the array of fields and…
Linny
  • 1
  • 1
-4
votes
2 answers

Maximum field name(column) length in SQL Server

Hi everyone i'm trying to create a table with columns that is more than 128 of text. is it possible to increase the field name(column) length in SQL Server
Yukimoto Otomikuy
  • 101
  • 2
  • 3
  • 8
1 2 3 4 5
6